CommitError
Defined in: packages/synapse-sdk/src/errors/storage.ts:46
All commits failed - data stored but not on-chain. Thrown when on-chain commit fails on every provider after successful store.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CommitError(
message,options?):CommitError
Defined in: packages/synapse-sdk/src/errors/storage.ts:57
Create a new CommitError
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
message |
string |
The error message |
options? |
StorageErrorOptions |
StorageErrorOptions |
Returns
Section titled “Returns”CommitError
Overrides
Section titled “Overrides”Properties
Section titled “Properties”[symbol]
Section titled “[symbol]”[symbol]:
boolean
Defined in: packages/synapse-core/dist/src/errors/base.d.ts:9
Inherited from
Section titled “Inherited from”cause?
Section titled “cause?”
optionalcause?:Error
Defined in: packages/synapse-core/dist/src/errors/base.d.ts:11
Inherited from
Section titled “Inherited from”details?
Section titled “details?”
optionaldetails?:string
Defined in: packages/synapse-core/dist/src/errors/base.d.ts:12
Inherited from
Section titled “Inherited from”endpoint?
Section titled “endpoint?”
optionalendpoint?:string
Defined in: packages/synapse-sdk/src/errors/storage.ts:49
name:
"CommitError"='CommitError'
Defined in: packages/synapse-sdk/src/errors/storage.ts:47
Overrides
Section titled “Overrides”providerId?
Section titled “providerId?”
optionalproviderId?:string
Defined in: packages/synapse-sdk/src/errors/storage.ts:48
shortMessage
Section titled “shortMessage”shortMessage:
string
Defined in: packages/synapse-core/dist/src/errors/base.d.ts:13
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON():
object
Defined in: packages/synapse-sdk/src/errors/storage.ts:63
Returns
Section titled “Returns”object
endpoint
Section titled “endpoint”endpoint:
string|undefined
providerId
Section titled “providerId”providerId:
string|undefined
Overrides
Section titled “Overrides”
staticis(value):value is CommitError
Defined in: packages/synapse-sdk/src/errors/storage.ts:71
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value |
unknown |
Returns
Section titled “Returns”value is CommitError