Skip to content

CoreError

Defined in: core/src/error/error.ts:9

Base class for every error thrown by @grundlag/core. Consumers can catch (error) { if (error instanceof CoreError) ... } to distinguish failures originating from this package from arbitrary runtime errors.

  • Error
new CoreError(message, options?): CoreError;

Defined in: core/src/error/error.ts:10

Parameter Type
message string
options? ErrorOptions

CoreError

Error.constructor