ComposioError
composio-core / index / ComposioError
Class: ComposioError
Defined in: js/src/sdk/utils/errors/src/composioError.ts:8
Custom error class for Composio that provides rich error details, tracking, and improved debugging
Extends
Error
Constructors
Constructor
new ComposioError(
errCode
,message
,description
?,possibleFix
?,metadata
?,originalError
?):ComposioError
Defined in: js/src/sdk/utils/errors/src/composioError.ts:30
Parameters
errCode
string
message
string
description?
string
possibleFix?
string
metadata?
Record
<string
, unknown
>
originalError?
unknown
Returns
ComposioError
Overrides
Error.constructor
Properties
_originalError?
readonly
optional
_originalError:unknown
Defined in: js/src/sdk/utils/errors/src/composioError.ts:28
description?
readonly
optional
description:string
Defined in: js/src/sdk/utils/errors/src/composioError.ts:22
errCode
readonly
errCode:string
Defined in: js/src/sdk/utils/errors/src/composioError.ts:16
errorId
readonly
errorId:string
Defined in: js/src/sdk/utils/errors/src/composioError.ts:13
message
message:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Error.message
metadata?
readonly
optional
metadata:Record
<string
,unknown
> ={}
Defined in: js/src/sdk/utils/errors/src/composioError.ts:19
name
name:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Error.name
possibleFix?
readonly
optional
possibleFix:string
Defined in: js/src/sdk/utils/errors/src/composioError.ts:25
stack?
optional
stack:string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Error.stack
timestamp
readonly
timestamp:string
Defined in: js/src/sdk/utils/errors/src/composioError.ts:10
Accessors
originalError
Get Signature
get originalError():
unknown
Defined in: js/src/sdk/utils/errors/src/composioError.ts:101
Returns
unknown
Methods
toJSON()
toJSON():
Record
<string
,unknown
>
Defined in: js/src/sdk/utils/errors/src/composioError.ts:109
Returns a complete object representation for logging/serialization Includes all error details and metadata
Returns
Record
<string
, unknown
>