Skip to content

feat(core): add cause option to RuntimeError constructor#68921

Draft
arturovt wants to merge 1 commit into
angular:mainfrom
arturovt:feat/runtime_error_cause
Draft

feat(core): add cause option to RuntimeError constructor#68921
arturovt wants to merge 1 commit into
angular:mainfrom
arturovt:feat/runtime_error_cause

Conversation

@arturovt
Copy link
Copy Markdown
Contributor

Adds an optional options parameter to RuntimeError that accepts a cause property, forwarding it to the native Error constructor. This preserves the original error as error.cause, improving debuggability when framework errors wrap lower-level exceptions.

@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: core Issues related to the framework runtime labels May 25, 2026
@ngbot ngbot Bot added this to the Backlog milestone May 25, 2026
Adds an optional `options` parameter to `RuntimeError` that accepts a
`cause` property, forwarding it to the native `Error` constructor.
This preserves the original error as `error.cause`, improving
debuggability when framework errors wrap lower-level exceptions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Issues related to the framework runtime detected: feature PR contains a feature commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant