XmtpError
Defined in: sdks/node/dist/public-values.gen.d.ts:1661
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:1663
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/[email protected]/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:1662
message
Section titled “message”message:
string
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1075
Inherited from
Section titled “Inherited from”Error.message
name:
string
Defined in: node_modules/.pnpm/[email protected]/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/[email protected]/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:1705
AuthRequired
Section titled “AuthRequired”
readonlystaticAuthRequired: typeofXmtpErrorAuthRequired
Defined in: sdks/node/dist/public-values.gen.d.ts:1679
BackendMismatch
Section titled “BackendMismatch”
readonlystaticBackendMismatch: typeofXmtpErrorBackendMismatch
Defined in: sdks/node/dist/public-values.gen.d.ts:1677
CallbackFailed
Section titled “CallbackFailed”
readonlystaticCallbackFailed: typeofXmtpErrorCallbackFailed
Defined in: sdks/node/dist/public-values.gen.d.ts:1683
Cancelled
Section titled “Cancelled”
readonlystaticCancelled: typeofXmtpErrorCancelled
Defined in: sdks/node/dist/public-values.gen.d.ts:1723
ChainNotAccepted
Section titled “ChainNotAccepted”
readonlystaticChainNotAccepted: typeofXmtpErrorChainNotAccepted
Defined in: sdks/node/dist/public-values.gen.d.ts:1680
ChannelNotConfigured
Section titled “ChannelNotConfigured”
readonlystaticChannelNotConfigured: typeofXmtpErrorChannelNotConfigured
Defined in: sdks/node/dist/public-values.gen.d.ts:1690
ClientClosed
Section titled “ClientClosed”
readonlystaticClientClosed: typeofXmtpErrorClientClosed
Defined in: sdks/node/dist/public-values.gen.d.ts:1664
ClientVersionTooOld
Section titled “ClientVersionTooOld”
readonlystaticClientVersionTooOld: typeofXmtpErrorClientVersionTooOld
Defined in: sdks/node/dist/public-values.gen.d.ts:1678
CodecDecodeFailed
Section titled “CodecDecodeFailed”
readonlystaticCodecDecodeFailed: typeofXmtpErrorCodecDecodeFailed
Defined in: sdks/node/dist/public-values.gen.d.ts:1715
CodecEncodeFailed
Section titled “CodecEncodeFailed”
readonlystaticCodecEncodeFailed: typeofXmtpErrorCodecEncodeFailed
Defined in: sdks/node/dist/public-values.gen.d.ts:1713
CodecNotFound
Section titled “CodecNotFound”
readonlystaticCodecNotFound: typeofXmtpErrorCodecNotFound
Defined in: sdks/node/dist/public-values.gen.d.ts:1714
ConfigurationInvalid
Section titled “ConfigurationInvalid”
readonlystaticConfigurationInvalid: typeofXmtpErrorConfigurationInvalid
Defined in: sdks/node/dist/public-values.gen.d.ts:1676
ConfigurationUnavailable
Section titled “ConfigurationUnavailable”
readonlystaticConfigurationUnavailable: typeofXmtpErrorConfigurationUnavailable
Defined in: sdks/node/dist/public-values.gen.d.ts:1675
ConsumerOwned
Section titled “ConsumerOwned”
readonlystaticConsumerOwned: typeofXmtpErrorConsumerOwned
Defined in: sdks/node/dist/public-values.gen.d.ts:1701
Credential
Section titled “Credential”
readonlystaticCredential: typeofXmtpErrorCredential
Defined in: sdks/node/dist/public-values.gen.d.ts:1674
CredentialCallbackFailed
Section titled “CredentialCallbackFailed”
readonlystaticCredentialCallbackFailed: typeofXmtpErrorCredentialCallbackFailed
Defined in: sdks/node/dist/public-values.gen.d.ts:1682
CredentialExhausted
Section titled “CredentialExhausted”
readonlystaticCredentialExhausted: typeofXmtpErrorCredentialExhausted
Defined in: sdks/node/dist/public-values.gen.d.ts:1684
CredentialMissing
Section titled “CredentialMissing”
readonlystaticCredentialMissing: typeofXmtpErrorCredentialMissing
Defined in: sdks/node/dist/public-values.gen.d.ts:1685
CredentialRejected
Section titled “CredentialRejected”
readonlystaticCredentialRejected: typeofXmtpErrorCredentialRejected
Defined in: sdks/node/dist/public-values.gen.d.ts:1681
DuplicateField
Section titled “DuplicateField”
readonlystaticDuplicateField: typeofXmtpErrorDuplicateField
Defined in: sdks/node/dist/public-values.gen.d.ts:1709
ForeignCursor
Section titled “ForeignCursor”
readonlystaticForeignCursor: typeofXmtpErrorForeignCursor
Defined in: sdks/node/dist/public-values.gen.d.ts:1703
HandleLimitReached
Section titled “HandleLimitReached”
readonlystaticHandleLimitReached: typeofXmtpErrorHandleLimitReached
Defined in: sdks/node/dist/public-values.gen.d.ts:1722
HandleNotAllowed
Section titled “HandleNotAllowed”
readonlystaticHandleNotAllowed: typeofXmtpErrorHandleNotAllowed
Defined in: sdks/node/dist/public-values.gen.d.ts:1720
HandleTaken
Section titled “HandleTaken”
readonlystaticHandleTaken: typeofXmtpErrorHandleTaken
Defined in: sdks/node/dist/public-values.gen.d.ts:1719
HandleTooSoon
Section titled “HandleTooSoon”
readonlystaticHandleTooSoon: typeofXmtpErrorHandleTooSoon
Defined in: sdks/node/dist/public-values.gen.d.ts:1721
IdentityMismatch
Section titled “IdentityMismatch”
readonlystaticIdentityMismatch: typeofXmtpErrorIdentityMismatch
Defined in: sdks/node/dist/public-values.gen.d.ts:1706
IdentityNotFound
Section titled “IdentityNotFound”
readonlystaticIdentityNotFound: typeofXmtpErrorIdentityNotFound
Defined in: sdks/node/dist/public-values.gen.d.ts:1667
InvalidArgument
Section titled “InvalidArgument”
readonlystaticInvalidArgument: typeofXmtpErrorInvalidArgument
Defined in: sdks/node/dist/public-values.gen.d.ts:1687
InvalidCursor
Section titled “InvalidCursor”
readonlystaticInvalidCursor: typeofXmtpErrorInvalidCursor
Defined in: sdks/node/dist/public-values.gen.d.ts:1702
InvalidInput
Section titled “InvalidInput”
readonlystaticInvalidInput: typeofXmtpErrorInvalidInput
Defined in: sdks/node/dist/public-values.gen.d.ts:1665
Lagged
Section titled “Lagged”
readonlystaticLagged: typeofXmtpErrorLagged
Defined in: sdks/node/dist/public-values.gen.d.ts:1700
MalformedEnvelope
Section titled “MalformedEnvelope”
readonlystaticMalformedEnvelope: typeofXmtpErrorMalformedEnvelope
Defined in: sdks/node/dist/public-values.gen.d.ts:1716
MigrationFailed
Section titled “MigrationFailed”
readonlystaticMigrationFailed: typeofXmtpErrorMigrationFailed
Defined in: sdks/node/dist/public-values.gen.d.ts:1670
MigrationOutput
Section titled “MigrationOutput”
readonlystaticMigrationOutput: typeofXmtpErrorMigrationOutput
Defined in: sdks/node/dist/public-values.gen.d.ts:1672
MigrationRecordRead
Section titled “MigrationRecordRead”
readonlystaticMigrationRecordRead: typeofXmtpErrorMigrationRecordRead
Defined in: sdks/node/dist/public-values.gen.d.ts:1671
MigrationUnsupportedSchema
Section titled “MigrationUnsupportedSchema”
readonlystaticMigrationUnsupportedSchema: typeofXmtpErrorMigrationUnsupportedSchema
Defined in: sdks/node/dist/public-values.gen.d.ts:1669
NotificationApi
Section titled “NotificationApi”
readonlystaticNotificationApi: typeofXmtpErrorNotificationApi
Defined in: sdks/node/dist/public-values.gen.d.ts:1695
NotificationGroup
Section titled “NotificationGroup”
readonlystaticNotificationGroup: typeofXmtpErrorNotificationGroup
Defined in: sdks/node/dist/public-values.gen.d.ts:1697
NotificationNotFound
Section titled “NotificationNotFound”
readonlystaticNotificationNotFound: typeofXmtpErrorNotificationNotFound
Defined in: sdks/node/dist/public-values.gen.d.ts:1694
NotificationStorage
Section titled “NotificationStorage”
readonlystaticNotificationStorage: typeofXmtpErrorNotificationStorage
Defined in: sdks/node/dist/public-values.gen.d.ts:1696
NotUserField
Section titled “NotUserField”
readonlystaticNotUserField: typeofXmtpErrorNotUserField
Defined in: sdks/node/dist/public-values.gen.d.ts:1708
OutOfRange
Section titled “OutOfRange”
readonlystaticOutOfRange: typeofXmtpErrorOutOfRange
Defined in: sdks/node/dist/public-values.gen.d.ts:1688
PermissionDenied
Section titled “PermissionDenied”
readonlystaticPermissionDenied: typeofXmtpErrorPermissionDenied
Defined in: sdks/node/dist/public-values.gen.d.ts:1686
PublishedButUnconfirmed
Section titled “PublishedButUnconfirmed”
readonlystaticPublishedButUnconfirmed: typeofXmtpErrorPublishedButUnconfirmed
Defined in: sdks/node/dist/public-values.gen.d.ts:1717
RecoveryExhausted
Section titled “RecoveryExhausted”
readonlystaticRecoveryExhausted: typeofXmtpErrorRecoveryExhausted
Defined in: sdks/node/dist/public-values.gen.d.ts:1698
RequestTimeout
Section titled “RequestTimeout”
readonlystaticRequestTimeout: typeofXmtpErrorRequestTimeout
Defined in: sdks/node/dist/public-values.gen.d.ts:1693
ResourceExhausted
Section titled “ResourceExhausted”
readonlystaticResourceExhausted: typeofXmtpErrorResourceExhausted
Defined in: sdks/node/dist/public-values.gen.d.ts:1692
Signer
Section titled “Signer”
readonlystaticSigner: typeofXmtpErrorSigner
Defined in: sdks/node/dist/public-values.gen.d.ts:1673
stackTraceLimit
Section titled “stackTraceLimit”
staticstackTraceLimit:number
Defined in: node_modules/.pnpm/@[email protected]/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:1699
StorageBusy
Section titled “StorageBusy”
readonlystaticStorageBusy: typeofXmtpErrorStorageBusy
Defined in: sdks/node/dist/public-values.gen.d.ts:1668
StorageLocation
Section titled “StorageLocation”
readonlystaticStorageLocation: typeofXmtpErrorStorageLocation
Defined in: sdks/node/dist/public-values.gen.d.ts:1704
StorageLocationRequired
Section titled “StorageLocationRequired”
readonlystaticStorageLocationRequired: typeofXmtpErrorStorageLocationRequired
Defined in: sdks/node/dist/public-values.gen.d.ts:1666
TaskRunnerDisabled
Section titled “TaskRunnerDisabled”
readonlystaticTaskRunnerDisabled: typeofXmtpErrorTaskRunnerDisabled
Defined in: sdks/node/dist/public-values.gen.d.ts:1691
TypeChanged
Section titled “TypeChanged”
readonlystaticTypeChanged: typeofXmtpErrorTypeChanged
Defined in: sdks/node/dist/public-values.gen.d.ts:1712
TypeMismatch
Section titled “TypeMismatch”
readonlystaticTypeMismatch: typeofXmtpErrorTypeMismatch
Defined in: sdks/node/dist/public-values.gen.d.ts:1711
Unimplemented
Section titled “Unimplemented”
readonlystaticUnimplemented: typeofXmtpErrorUnimplemented
Defined in: sdks/node/dist/public-values.gen.d.ts:1689
Unknown
Section titled “Unknown”
readonlystaticUnknown: typeofXmtpErrorUnknown
Defined in: sdks/node/dist/public-values.gen.d.ts:1724
UnknownField
Section titled “UnknownField”
readonlystaticUnknownField: typeofXmtpErrorUnknownField
Defined in: sdks/node/dist/public-values.gen.d.ts:1707
UnsupportedType
Section titled “UnsupportedType”
readonlystaticUnsupportedType: typeofXmtpErrorUnsupportedType
Defined in: sdks/node/dist/public-values.gen.d.ts:1710
UserLimitExceeded
Section titled “UserLimitExceeded”
readonlystaticUserLimitExceeded: typeofXmtpErrorUserLimitExceeded
Defined in: sdks/node/dist/public-values.gen.d.ts:1718
Methods
Section titled “Methods”captureStackTrace()
Section titled “captureStackTrace()”
staticcaptureStackTrace(targetObject,constructorOpt?):void
Defined in: node_modules/.pnpm/@[email protected]/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/@[email protected]/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