XmtpError
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:384
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/browser/dist/typescript-pure/public-values.gen.d.ts:386
Parameters
Section titled “Parameters”details
Section titled “details”ErrorDetails
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/browser/dist/typescript-pure/public-values.gen.d.ts:385
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/browser/dist/typescript-pure/public-values.gen.d.ts:428
AuthRequired
Section titled “AuthRequired”
readonlystaticAuthRequired: typeofXmtpErrorAuthRequired
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:402
BackendMismatch
Section titled “BackendMismatch”
readonlystaticBackendMismatch: typeofXmtpErrorBackendMismatch
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:400
CallbackFailed
Section titled “CallbackFailed”
readonlystaticCallbackFailed: typeofXmtpErrorCallbackFailed
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:406
Cancelled
Section titled “Cancelled”
readonlystaticCancelled: typeofXmtpErrorCancelled
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:446
ChainNotAccepted
Section titled “ChainNotAccepted”
readonlystaticChainNotAccepted: typeofXmtpErrorChainNotAccepted
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:403
ChannelNotConfigured
Section titled “ChannelNotConfigured”
readonlystaticChannelNotConfigured: typeofXmtpErrorChannelNotConfigured
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:413
ClientClosed
Section titled “ClientClosed”
readonlystaticClientClosed: typeofXmtpErrorClientClosed
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:387
ClientVersionTooOld
Section titled “ClientVersionTooOld”
readonlystaticClientVersionTooOld: typeofXmtpErrorClientVersionTooOld
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:401
CodecDecodeFailed
Section titled “CodecDecodeFailed”
readonlystaticCodecDecodeFailed: typeofXmtpErrorCodecDecodeFailed
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:438
CodecEncodeFailed
Section titled “CodecEncodeFailed”
readonlystaticCodecEncodeFailed: typeofXmtpErrorCodecEncodeFailed
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:436
CodecNotFound
Section titled “CodecNotFound”
readonlystaticCodecNotFound: typeofXmtpErrorCodecNotFound
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:437
ConfigurationInvalid
Section titled “ConfigurationInvalid”
readonlystaticConfigurationInvalid: typeofXmtpErrorConfigurationInvalid
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:399
ConfigurationUnavailable
Section titled “ConfigurationUnavailable”
readonlystaticConfigurationUnavailable: typeofXmtpErrorConfigurationUnavailable
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:398
ConsumerOwned
Section titled “ConsumerOwned”
readonlystaticConsumerOwned: typeofXmtpErrorConsumerOwned
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:424
Credential
Section titled “Credential”
readonlystaticCredential: typeofXmtpErrorCredential
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:397
CredentialCallbackFailed
Section titled “CredentialCallbackFailed”
readonlystaticCredentialCallbackFailed: typeofXmtpErrorCredentialCallbackFailed
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:405
CredentialExhausted
Section titled “CredentialExhausted”
readonlystaticCredentialExhausted: typeofXmtpErrorCredentialExhausted
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:407
CredentialMissing
Section titled “CredentialMissing”
readonlystaticCredentialMissing: typeofXmtpErrorCredentialMissing
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:408
CredentialRejected
Section titled “CredentialRejected”
readonlystaticCredentialRejected: typeofXmtpErrorCredentialRejected
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:404
DuplicateField
Section titled “DuplicateField”
readonlystaticDuplicateField: typeofXmtpErrorDuplicateField
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:432
ForeignCursor
Section titled “ForeignCursor”
readonlystaticForeignCursor: typeofXmtpErrorForeignCursor
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:426
HandleLimitReached
Section titled “HandleLimitReached”
readonlystaticHandleLimitReached: typeofXmtpErrorHandleLimitReached
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:445
HandleNotAllowed
Section titled “HandleNotAllowed”
readonlystaticHandleNotAllowed: typeofXmtpErrorHandleNotAllowed
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:443
HandleTaken
Section titled “HandleTaken”
readonlystaticHandleTaken: typeofXmtpErrorHandleTaken
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:442
HandleTooSoon
Section titled “HandleTooSoon”
readonlystaticHandleTooSoon: typeofXmtpErrorHandleTooSoon
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:444
IdentityMismatch
Section titled “IdentityMismatch”
readonlystaticIdentityMismatch: typeofXmtpErrorIdentityMismatch
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:429
IdentityNotFound
Section titled “IdentityNotFound”
readonlystaticIdentityNotFound: typeofXmtpErrorIdentityNotFound
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:390
InvalidArgument
Section titled “InvalidArgument”
readonlystaticInvalidArgument: typeofXmtpErrorInvalidArgument
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:410
InvalidCursor
Section titled “InvalidCursor”
readonlystaticInvalidCursor: typeofXmtpErrorInvalidCursor
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:425
InvalidInput
Section titled “InvalidInput”
readonlystaticInvalidInput: typeofXmtpErrorInvalidInput
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:388
Lagged
Section titled “Lagged”
readonlystaticLagged: typeofXmtpErrorLagged
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:423
MalformedEnvelope
Section titled “MalformedEnvelope”
readonlystaticMalformedEnvelope: typeofXmtpErrorMalformedEnvelope
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:439
MigrationFailed
Section titled “MigrationFailed”
readonlystaticMigrationFailed: typeofXmtpErrorMigrationFailed
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:393
MigrationOutput
Section titled “MigrationOutput”
readonlystaticMigrationOutput: typeofXmtpErrorMigrationOutput
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:395
MigrationRecordRead
Section titled “MigrationRecordRead”
readonlystaticMigrationRecordRead: typeofXmtpErrorMigrationRecordRead
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:394
MigrationUnsupportedSchema
Section titled “MigrationUnsupportedSchema”
readonlystaticMigrationUnsupportedSchema: typeofXmtpErrorMigrationUnsupportedSchema
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:392
NotificationApi
Section titled “NotificationApi”
readonlystaticNotificationApi: typeofXmtpErrorNotificationApi
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:418
NotificationGroup
Section titled “NotificationGroup”
readonlystaticNotificationGroup: typeofXmtpErrorNotificationGroup
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:420
NotificationNotFound
Section titled “NotificationNotFound”
readonlystaticNotificationNotFound: typeofXmtpErrorNotificationNotFound
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:417
NotificationStorage
Section titled “NotificationStorage”
readonlystaticNotificationStorage: typeofXmtpErrorNotificationStorage
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:419
NotUserField
Section titled “NotUserField”
readonlystaticNotUserField: typeofXmtpErrorNotUserField
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:431
OutOfRange
Section titled “OutOfRange”
readonlystaticOutOfRange: typeofXmtpErrorOutOfRange
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:411
PermissionDenied
Section titled “PermissionDenied”
readonlystaticPermissionDenied: typeofXmtpErrorPermissionDenied
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:409
PublishedButUnconfirmed
Section titled “PublishedButUnconfirmed”
readonlystaticPublishedButUnconfirmed: typeofXmtpErrorPublishedButUnconfirmed
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:440
RecoveryExhausted
Section titled “RecoveryExhausted”
readonlystaticRecoveryExhausted: typeofXmtpErrorRecoveryExhausted
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:421
RequestTimeout
Section titled “RequestTimeout”
readonlystaticRequestTimeout: typeofXmtpErrorRequestTimeout
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:416
ResourceExhausted
Section titled “ResourceExhausted”
readonlystaticResourceExhausted: typeofXmtpErrorResourceExhausted
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:415
Signer
Section titled “Signer”
readonlystaticSigner: typeofXmtpErrorSigner
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:396
stackTraceLimit
Section titled “stackTraceLimit”
staticstackTraceLimit:number
Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:67
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/browser/dist/typescript-pure/public-values.gen.d.ts:422
StorageBusy
Section titled “StorageBusy”
readonlystaticStorageBusy: typeofXmtpErrorStorageBusy
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:391
StorageLocation
Section titled “StorageLocation”
readonlystaticStorageLocation: typeofXmtpErrorStorageLocation
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:427
StorageLocationRequired
Section titled “StorageLocationRequired”
readonlystaticStorageLocationRequired: typeofXmtpErrorStorageLocationRequired
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:389
TaskRunnerDisabled
Section titled “TaskRunnerDisabled”
readonlystaticTaskRunnerDisabled: typeofXmtpErrorTaskRunnerDisabled
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:414
TypeChanged
Section titled “TypeChanged”
readonlystaticTypeChanged: typeofXmtpErrorTypeChanged
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:435
TypeMismatch
Section titled “TypeMismatch”
readonlystaticTypeMismatch: typeofXmtpErrorTypeMismatch
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:434
Unimplemented
Section titled “Unimplemented”
readonlystaticUnimplemented: typeofXmtpErrorUnimplemented
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:412
Unknown
Section titled “Unknown”
readonlystaticUnknown: typeofXmtpErrorUnknown
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:447
UnknownField
Section titled “UnknownField”
readonlystaticUnknownField: typeofXmtpErrorUnknownField
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:430
UnsupportedType
Section titled “UnsupportedType”
readonlystaticUnsupportedType: typeofXmtpErrorUnsupportedType
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:433
UserLimitExceeded
Section titled “UserLimitExceeded”
readonlystaticUserLimitExceeded: typeofXmtpErrorUserLimitExceeded
Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:441
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:51
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
isError()
Section titled “isError()”
staticisError(error):error is Error
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.esnext.error.d.ts:21
Indicates whether the argument provided is a built-in Error instance or not.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”error is Error
Inherited from
Section titled “Inherited from”Error.isError
prepareStackTrace()
Section titled “prepareStackTrace()”
staticprepareStackTrace(err,stackTraces):any
Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:55
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