Documentation / @agentick/shared / AgentickError
Class: AgentickError ​
Defined in: errors.ts:100
Base class for all Agentick errors. Provides consistent structure, serialization, and type identification.
Extends ​
Error
Extended by ​
AbortErrorNotFoundErrorValidationErrorStateErrorTransportErrorAdapterErrorContextErrorReactivityErrorGuardErrorGuardErrorGuardError
Constructors ​
Constructor ​
new AgentickError(
code,message,details?,cause?):AgentickError
Defined in: errors.ts:110
Parameters ​
code ​
message ​
string
details? ​
Record<string, unknown> = {}
cause? ​
Error
Returns ​
AgentickError
Overrides ​
Error.constructor
Properties ​
cause? ​
readonlyoptionalcause:Error
Defined in: errors.ts:108
Original error that caused this error
Overrides ​
Error.cause
code ​
readonlycode:AgentickErrorCode
Defined in: errors.ts:102
Unique error code for programmatic handling
details ​
readonlydetails:Record<string,unknown>
Defined in: errors.ts:105
Additional error details
Methods ​
fromJSON() ​
staticfromJSON(json):AgentickError
Defined in: errors.ts:169
Create error from serialized format
Parameters ​
json ​
Returns ​
AgentickError
toJSON() ​
toJSON():
SerializedAgentickError
Defined in: errors.ts:137
Serialize error for transport (JSON-safe)