XmtpError
Defined in: sdks/node/dist/public-values.gen.d.ts:1649
A failure from the XMTP SDK. Its subclass names the failure variant. details.code keeps the Rust cause code.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new XmtpError(
details):XmtpError
Defined in: sdks/node/dist/public-values.gen.d.ts:1651
Parameters
Section titled “Parameters”details
Section titled “details”Returns
Section titled “Returns”XmtpError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause?:unknown
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24
Inherited from
Section titled “Inherited from”Error.cause
details
Section titled “details”
readonlydetails:ErrorDetails
Defined in: sdks/node/dist/public-values.gen.d.ts:1650
message
Section titled “message”message:
string
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075
Inherited from
Section titled “Inherited from”Error.message
name:
string
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1074
Inherited from
Section titled “Inherited from”Error.name
stack?
Section titled “stack?”
optionalstack?:string
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”Error.stack
Attachment
Section titled “Attachment”
readonlystaticAttachment: typeofXmtpErrorAttachment
Defined in: sdks/node/dist/public-values.gen.d.ts:1693
AuthRequired
Section titled “AuthRequired”
readonlystaticAuthRequired: typeofXmtpErrorAuthRequired
Defined in: sdks/node/dist/public-values.gen.d.ts:1667
BackendMismatch
Section titled “BackendMismatch”
readonlystaticBackendMismatch: typeofXmtpErrorBackendMismatch
Defined in: sdks/node/dist/public-values.gen.d.ts:1665
CallbackFailed
Section titled “CallbackFailed”
readonlystaticCallbackFailed: typeofXmtpErrorCallbackFailed
Defined in: sdks/node/dist/public-values.gen.d.ts:1671
Cancelled
Section titled “Cancelled”
readonlystaticCancelled: typeofXmtpErrorCancelled
Defined in: sdks/node/dist/public-values.gen.d.ts:1711
ChainNotAccepted
Section titled “ChainNotAccepted”
readonlystaticChainNotAccepted: typeofXmtpErrorChainNotAccepted
Defined in: sdks/node/dist/public-values.gen.d.ts:1668
ChannelNotConfigured
Section titled “ChannelNotConfigured”
readonlystaticChannelNotConfigured: typeofXmtpErrorChannelNotConfigured
Defined in: sdks/node/dist/public-values.gen.d.ts:1678
ClientClosed
Section titled “ClientClosed”
readonlystaticClientClosed: typeofXmtpErrorClientClosed
Defined in: sdks/node/dist/public-values.gen.d.ts:1652
ClientVersionTooOld
Section titled “ClientVersionTooOld”
readonlystaticClientVersionTooOld: typeofXmtpErrorClientVersionTooOld
Defined in: sdks/node/dist/public-values.gen.d.ts:1666
CodecDecodeFailed
Section titled “CodecDecodeFailed”
readonlystaticCodecDecodeFailed: typeofXmtpErrorCodecDecodeFailed
Defined in: sdks/node/dist/public-values.gen.d.ts:1703
CodecEncodeFailed
Section titled “CodecEncodeFailed”
readonlystaticCodecEncodeFailed: typeofXmtpErrorCodecEncodeFailed
Defined in: sdks/node/dist/public-values.gen.d.ts:1701
CodecNotFound
Section titled “CodecNotFound”
readonlystaticCodecNotFound: typeofXmtpErrorCodecNotFound
Defined in: sdks/node/dist/public-values.gen.d.ts:1702
ConfigurationInvalid
Section titled “ConfigurationInvalid”
readonlystaticConfigurationInvalid: typeofXmtpErrorConfigurationInvalid
Defined in: sdks/node/dist/public-values.gen.d.ts:1664
ConfigurationUnavailable
Section titled “ConfigurationUnavailable”
readonlystaticConfigurationUnavailable: typeofXmtpErrorConfigurationUnavailable
Defined in: sdks/node/dist/public-values.gen.d.ts:1663
ConsumerOwned
Section titled “ConsumerOwned”
readonlystaticConsumerOwned: typeofXmtpErrorConsumerOwned
Defined in: sdks/node/dist/public-values.gen.d.ts:1689
Credential
Section titled “Credential”
readonlystaticCredential: typeofXmtpErrorCredential
Defined in: sdks/node/dist/public-values.gen.d.ts:1662
CredentialCallbackFailed
Section titled “CredentialCallbackFailed”
readonlystaticCredentialCallbackFailed: typeofXmtpErrorCredentialCallbackFailed
Defined in: sdks/node/dist/public-values.gen.d.ts:1670
CredentialExhausted
Section titled “CredentialExhausted”
readonlystaticCredentialExhausted: typeofXmtpErrorCredentialExhausted
Defined in: sdks/node/dist/public-values.gen.d.ts:1672
CredentialMissing
Section titled “CredentialMissing”
readonlystaticCredentialMissing: typeofXmtpErrorCredentialMissing
Defined in: sdks/node/dist/public-values.gen.d.ts:1673
CredentialRejected
Section titled “CredentialRejected”
readonlystaticCredentialRejected: typeofXmtpErrorCredentialRejected
Defined in: sdks/node/dist/public-values.gen.d.ts:1669
DuplicateField
Section titled “DuplicateField”
readonlystaticDuplicateField: typeofXmtpErrorDuplicateField
Defined in: sdks/node/dist/public-values.gen.d.ts:1697
ForeignCursor
Section titled “ForeignCursor”
readonlystaticForeignCursor: typeofXmtpErrorForeignCursor
Defined in: sdks/node/dist/public-values.gen.d.ts:1691
HandleLimitReached
Section titled “HandleLimitReached”
readonlystaticHandleLimitReached: typeofXmtpErrorHandleLimitReached
Defined in: sdks/node/dist/public-values.gen.d.ts:1710
HandleNotAllowed
Section titled “HandleNotAllowed”
readonlystaticHandleNotAllowed: typeofXmtpErrorHandleNotAllowed
Defined in: sdks/node/dist/public-values.gen.d.ts:1708
HandleTaken
Section titled “HandleTaken”
readonlystaticHandleTaken: typeofXmtpErrorHandleTaken
Defined in: sdks/node/dist/public-values.gen.d.ts:1707
HandleTooSoon
Section titled “HandleTooSoon”
readonlystaticHandleTooSoon: typeofXmtpErrorHandleTooSoon
Defined in: sdks/node/dist/public-values.gen.d.ts:1709
IdentityMismatch
Section titled “IdentityMismatch”
readonlystaticIdentityMismatch: typeofXmtpErrorIdentityMismatch
Defined in: sdks/node/dist/public-values.gen.d.ts:1694
IdentityNotFound
Section titled “IdentityNotFound”
readonlystaticIdentityNotFound: typeofXmtpErrorIdentityNotFound
Defined in: sdks/node/dist/public-values.gen.d.ts:1655
InvalidArgument
Section titled “InvalidArgument”
readonlystaticInvalidArgument: typeofXmtpErrorInvalidArgument
Defined in: sdks/node/dist/public-values.gen.d.ts:1675
InvalidCursor
Section titled “InvalidCursor”
readonlystaticInvalidCursor: typeofXmtpErrorInvalidCursor
Defined in: sdks/node/dist/public-values.gen.d.ts:1690
InvalidInput
Section titled “InvalidInput”
readonlystaticInvalidInput: typeofXmtpErrorInvalidInput
Defined in: sdks/node/dist/public-values.gen.d.ts:1653
Lagged
Section titled “Lagged”
readonlystaticLagged: typeofXmtpErrorLagged
Defined in: sdks/node/dist/public-values.gen.d.ts:1688
MalformedEnvelope
Section titled “MalformedEnvelope”
readonlystaticMalformedEnvelope: typeofXmtpErrorMalformedEnvelope
Defined in: sdks/node/dist/public-values.gen.d.ts:1704
MigrationFailed
Section titled “MigrationFailed”
readonlystaticMigrationFailed: typeofXmtpErrorMigrationFailed
Defined in: sdks/node/dist/public-values.gen.d.ts:1658
MigrationOutput
Section titled “MigrationOutput”
readonlystaticMigrationOutput: typeofXmtpErrorMigrationOutput
Defined in: sdks/node/dist/public-values.gen.d.ts:1660
MigrationRecordRead
Section titled “MigrationRecordRead”
readonlystaticMigrationRecordRead: typeofXmtpErrorMigrationRecordRead
Defined in: sdks/node/dist/public-values.gen.d.ts:1659
MigrationUnsupportedSchema
Section titled “MigrationUnsupportedSchema”
readonlystaticMigrationUnsupportedSchema: typeofXmtpErrorMigrationUnsupportedSchema
Defined in: sdks/node/dist/public-values.gen.d.ts:1657
NotificationApi
Section titled “NotificationApi”
readonlystaticNotificationApi: typeofXmtpErrorNotificationApi
Defined in: sdks/node/dist/public-values.gen.d.ts:1683
NotificationGroup
Section titled “NotificationGroup”
readonlystaticNotificationGroup: typeofXmtpErrorNotificationGroup
Defined in: sdks/node/dist/public-values.gen.d.ts:1685
NotificationNotFound
Section titled “NotificationNotFound”
readonlystaticNotificationNotFound: typeofXmtpErrorNotificationNotFound
Defined in: sdks/node/dist/public-values.gen.d.ts:1682
NotificationStorage
Section titled “NotificationStorage”
readonlystaticNotificationStorage: typeofXmtpErrorNotificationStorage
Defined in: sdks/node/dist/public-values.gen.d.ts:1684
NotUserField
Section titled “NotUserField”
readonlystaticNotUserField: typeofXmtpErrorNotUserField
Defined in: sdks/node/dist/public-values.gen.d.ts:1696
OutOfRange
Section titled “OutOfRange”
readonlystaticOutOfRange: typeofXmtpErrorOutOfRange
Defined in: sdks/node/dist/public-values.gen.d.ts:1676
PermissionDenied
Section titled “PermissionDenied”
readonlystaticPermissionDenied: typeofXmtpErrorPermissionDenied
Defined in: sdks/node/dist/public-values.gen.d.ts:1674
PublishedButUnconfirmed
Section titled “PublishedButUnconfirmed”
readonlystaticPublishedButUnconfirmed: typeofXmtpErrorPublishedButUnconfirmed
Defined in: sdks/node/dist/public-values.gen.d.ts:1705
RecoveryExhausted
Section titled “RecoveryExhausted”
readonlystaticRecoveryExhausted: typeofXmtpErrorRecoveryExhausted
Defined in: sdks/node/dist/public-values.gen.d.ts:1686
RequestTimeout
Section titled “RequestTimeout”
readonlystaticRequestTimeout: typeofXmtpErrorRequestTimeout
Defined in: sdks/node/dist/public-values.gen.d.ts:1681
ResourceExhausted
Section titled “ResourceExhausted”
readonlystaticResourceExhausted: typeofXmtpErrorResourceExhausted
Defined in: sdks/node/dist/public-values.gen.d.ts:1680
Signer
Section titled “Signer”
readonlystaticSigner: typeofXmtpErrorSigner
Defined in: sdks/node/dist/public-values.gen.d.ts:1661
stackTraceLimit
Section titled “stackTraceLimit”
staticstackTraceLimit:number
Defined in: node_modules/.pnpm/@types+node@22.20.2/node_modules/@types/node/globals.d.ts:68
The Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
Inherited from
Section titled “Inherited from”Error.stackTraceLimit
Storage
Section titled “Storage”
readonlystaticStorage: typeofXmtpErrorStorage
Defined in: sdks/node/dist/public-values.gen.d.ts:1687
StorageBusy
Section titled “StorageBusy”
readonlystaticStorageBusy: typeofXmtpErrorStorageBusy
Defined in: sdks/node/dist/public-values.gen.d.ts:1656
StorageLocation
Section titled “StorageLocation”
readonlystaticStorageLocation: typeofXmtpErrorStorageLocation
Defined in: sdks/node/dist/public-values.gen.d.ts:1692
StorageLocationRequired
Section titled “StorageLocationRequired”
readonlystaticStorageLocationRequired: typeofXmtpErrorStorageLocationRequired
Defined in: sdks/node/dist/public-values.gen.d.ts:1654
TaskRunnerDisabled
Section titled “TaskRunnerDisabled”
readonlystaticTaskRunnerDisabled: typeofXmtpErrorTaskRunnerDisabled
Defined in: sdks/node/dist/public-values.gen.d.ts:1679
TypeChanged
Section titled “TypeChanged”
readonlystaticTypeChanged: typeofXmtpErrorTypeChanged
Defined in: sdks/node/dist/public-values.gen.d.ts:1700
TypeMismatch
Section titled “TypeMismatch”
readonlystaticTypeMismatch: typeofXmtpErrorTypeMismatch
Defined in: sdks/node/dist/public-values.gen.d.ts:1699
Unimplemented
Section titled “Unimplemented”
readonlystaticUnimplemented: typeofXmtpErrorUnimplemented
Defined in: sdks/node/dist/public-values.gen.d.ts:1677
Unknown
Section titled “Unknown”
readonlystaticUnknown: typeofXmtpErrorUnknown
Defined in: sdks/node/dist/public-values.gen.d.ts:1712
UnknownField
Section titled “UnknownField”
readonlystaticUnknownField: typeofXmtpErrorUnknownField
Defined in: sdks/node/dist/public-values.gen.d.ts:1695
UnsupportedType
Section titled “UnsupportedType”
readonlystaticUnsupportedType: typeofXmtpErrorUnsupportedType
Defined in: sdks/node/dist/public-values.gen.d.ts:1698
UserLimitExceeded
Section titled “UserLimitExceeded”
readonlystaticUserLimitExceeded: typeofXmtpErrorUserLimitExceeded
Defined in: sdks/node/dist/public-values.gen.d.ts:1706
Methods
Section titled “Methods”captureStackTrace()
Section titled “captureStackTrace()”
staticcaptureStackTrace(targetObject,constructorOpt?):void
Defined in: node_modules/.pnpm/@types+node@22.20.2/node_modules/@types/node/globals.d.ts:52
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
const myObject = {};Error.captureStackTrace(myObject);myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
function a() { b();}
function b() { c();}
function c() { // Create an error without stack trace to avoid calculating the stack trace twice. const { stackTraceLimit } = Error; Error.stackTraceLimit = 0; const error = new Error(); Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace throw error;}
a();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Error.captureStackTrace
prepareStackTrace()
Section titled “prepareStackTrace()”
staticprepareStackTrace(err,stackTraces):any
Defined in: node_modules/.pnpm/@types+node@22.20.2/node_modules/@types/node/globals.d.ts:56
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”Error.prepareStackTrace