Skip to content

add Exception::clone() and remove exception copy constructor#2615

Merged
mikea merged 1 commit into
v2from
maizatskyi/2026-04-03-exception-clone
Apr 16, 2026
Merged

add Exception::clone() and remove exception copy constructor#2615
mikea merged 1 commit into
v2from
maizatskyi/2026-04-03-exception-clone

Conversation

@mikea

@mikea mikea commented Apr 3, 2026

Copy link
Copy Markdown
Collaborator

as discussed in #2613

it will take me a bit to align downstream changes.

@mikea mikea force-pushed the maizatskyi/2026-04-03-exception-clone branch from e8a8dc0 to 82efa5f Compare April 3, 2026 16:54
@mikea mikea requested review from harrishancock and kentonv and removed request for harrishancock April 3, 2026 17:33
@mikea mikea marked this pull request as ready for review April 3, 2026 17:33
mikea added a commit to cloudflare/workerd that referenced this pull request Apr 3, 2026

@kentonv kentonv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like it'd be easier to manage downstream changes if we added clone() first, then updated everyone, then removed the copy constructor, in separate PRs? But up to you.

Comment thread c++/src/kj/exception.h Outdated
Comment thread c++/src/kj/common.h Outdated
@mikea mikea force-pushed the maizatskyi/2026-04-03-exception-clone branch from 82efa5f to 4364fd0 Compare April 13, 2026 22:06
@mikea mikea requested a review from kentonv April 13, 2026 22:07
@mikea mikea force-pushed the maizatskyi/2026-04-03-exception-clone branch from 4364fd0 to eeeb367 Compare April 13, 2026 22:08
@mikea mikea changed the title add Exception::clone() and hide exception copy constructor add Exception::clone() and remove exception copy constructor Apr 14, 2026
@mikea mikea force-pushed the maizatskyi/2026-04-03-exception-clone branch from eeeb367 to 42c5dfc Compare April 16, 2026 15:57
mikea added a commit to cloudflare/workerd that referenced this pull request Apr 16, 2026
mikea added a commit to cloudflare/workerd that referenced this pull request Apr 16, 2026
@mikea mikea merged commit 59a195f into v2 Apr 16, 2026
13 checks passed
@mikea mikea deleted the maizatskyi/2026-04-03-exception-clone branch April 16, 2026 20:58
mikea added a commit to cloudflare/workerd that referenced this pull request Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants