Class: ReasoningLayerError
@kortexya/reasoninglayer / ReasoningLayerError
Class: ReasoningLayerError
Defined in: src/errors.ts:11
Base error class for all Reasoning Layer SDK errors.
All errors thrown by the SDK extend this class, enabling catch-all handling:
try { ... } catch (e) { if (e instanceof ReasoningLayerError) { ... }}Extends
Error
Extended by
Constructors
Constructor
new ReasoningLayerError(
message,options?):ReasoningLayerError
Defined in: src/errors.ts:14
Parameters
message
string
options?
cause?
Error
Returns
ReasoningLayerError
Overrides
Error.constructor
Properties
cause?
optionalcause:unknown
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
Error.cause
message
message:
string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Error.message
name
name:
string='ReasoningLayerError'
Defined in: src/errors.ts:12
Overrides
Error.name
stack?
optionalstack:string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Error.stack