Class: JourneyError
@rxova/journey-core / JourneyError
Defined in: packages/core/src/core/errors.ts:51
Every error core throws itself.
Before this existed, distinguishing “duplicate plugin name” from “unknown step
in transition” meant matching on the message text — which quietly made every
message a compatibility promise. code is the stable contract; message is
for humans and may be reworded in any release.
Errors surfaced through NavigationResult.error and the error subscription
event stay unknown: those carry whatever the caller’s own work threw, which
core cannot constrain.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new JourneyError( code, message, details?, cause?): JourneyError;Defined in: packages/core/src/core/errors.ts:57
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
code | JourneyErrorCode |
message | string |
details | JourneyErrorDetails |
cause? | unknown |
Returns
Section titled “Returns”JourneyError
Overrides
Section titled “Overrides”Error.constructorProperties
Section titled “Properties”| Property | Modifier | Type | Inherited from | Defined in |
|---|---|---|---|---|
cause? | public | unknown | Error.cause | node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24 |
code | readonly | JourneyErrorCode | - | packages/core/src/core/errors.ts:52 |
event | readonly | string | undefined | - | packages/core/src/core/errors.ts:54 |
message | public | string | Error.message | node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075 |
name | public | string | Error.name | node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1074 |
pluginName | readonly | string | undefined | - | packages/core/src/core/errors.ts:55 |
stack? | public | string | Error.stack | node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076 |
stepId | readonly | string | undefined | - | packages/core/src/core/errors.ts:53 |