Skip to content

XmtpError

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:377

A failure from the XMTP SDK. Its subclass names the failure variant. details.code keeps the Rust cause code.

  • Error

new XmtpError(details): XmtpError

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:379

ErrorDetails

XmtpError

Error.constructor

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24

Error.cause


readonly details: ErrorDetails

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:378


message: string

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075

Error.message


name: string

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1074

Error.name


optional stack?: string

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Error.stack


readonly static Attachment: typeof XmtpErrorAttachment

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:421


readonly static AuthRequired: typeof XmtpErrorAuthRequired

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:395


readonly static BackendMismatch: typeof XmtpErrorBackendMismatch

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:393


readonly static CallbackFailed: typeof XmtpErrorCallbackFailed

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:399


readonly static Cancelled: typeof XmtpErrorCancelled

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:439


readonly static ChainNotAccepted: typeof XmtpErrorChainNotAccepted

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:396


readonly static ChannelNotConfigured: typeof XmtpErrorChannelNotConfigured

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:406


readonly static ClientClosed: typeof XmtpErrorClientClosed

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:380


readonly static ClientVersionTooOld: typeof XmtpErrorClientVersionTooOld

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:394


readonly static CodecDecodeFailed: typeof XmtpErrorCodecDecodeFailed

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:431


readonly static CodecEncodeFailed: typeof XmtpErrorCodecEncodeFailed

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:429


readonly static CodecNotFound: typeof XmtpErrorCodecNotFound

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:430


readonly static ConfigurationInvalid: typeof XmtpErrorConfigurationInvalid

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:392


readonly static ConfigurationUnavailable: typeof XmtpErrorConfigurationUnavailable

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:391


readonly static ConsumerOwned: typeof XmtpErrorConsumerOwned

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:417


readonly static Credential: typeof XmtpErrorCredential

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:390


readonly static CredentialCallbackFailed: typeof XmtpErrorCredentialCallbackFailed

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:398


readonly static CredentialExhausted: typeof XmtpErrorCredentialExhausted

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:400


readonly static CredentialMissing: typeof XmtpErrorCredentialMissing

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:401


readonly static CredentialRejected: typeof XmtpErrorCredentialRejected

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:397


readonly static DuplicateField: typeof XmtpErrorDuplicateField

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:425


readonly static ForeignCursor: typeof XmtpErrorForeignCursor

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:419


readonly static HandleLimitReached: typeof XmtpErrorHandleLimitReached

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:438


readonly static HandleNotAllowed: typeof XmtpErrorHandleNotAllowed

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:436


readonly static HandleTaken: typeof XmtpErrorHandleTaken

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:435


readonly static HandleTooSoon: typeof XmtpErrorHandleTooSoon

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:437


readonly static IdentityMismatch: typeof XmtpErrorIdentityMismatch

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:422


readonly static IdentityNotFound: typeof XmtpErrorIdentityNotFound

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:383


readonly static InvalidArgument: typeof XmtpErrorInvalidArgument

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:403


readonly static InvalidCursor: typeof XmtpErrorInvalidCursor

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:418


readonly static InvalidInput: typeof XmtpErrorInvalidInput

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:381


readonly static Lagged: typeof XmtpErrorLagged

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:416


readonly static MalformedEnvelope: typeof XmtpErrorMalformedEnvelope

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:432


readonly static MigrationFailed: typeof XmtpErrorMigrationFailed

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:386


readonly static MigrationOutput: typeof XmtpErrorMigrationOutput

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:388


readonly static MigrationRecordRead: typeof XmtpErrorMigrationRecordRead

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:387


readonly static MigrationUnsupportedSchema: typeof XmtpErrorMigrationUnsupportedSchema

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:385


readonly static NotificationApi: typeof XmtpErrorNotificationApi

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:411


readonly static NotificationGroup: typeof XmtpErrorNotificationGroup

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:413


readonly static NotificationNotFound: typeof XmtpErrorNotificationNotFound

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:410


readonly static NotificationStorage: typeof XmtpErrorNotificationStorage

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:412


readonly static NotUserField: typeof XmtpErrorNotUserField

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:424


readonly static OutOfRange: typeof XmtpErrorOutOfRange

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:404


readonly static PermissionDenied: typeof XmtpErrorPermissionDenied

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:402


readonly static PublishedButUnconfirmed: typeof XmtpErrorPublishedButUnconfirmed

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:433


readonly static RecoveryExhausted: typeof XmtpErrorRecoveryExhausted

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:414


readonly static RequestTimeout: typeof XmtpErrorRequestTimeout

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:409


readonly static ResourceExhausted: typeof XmtpErrorResourceExhausted

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:408


readonly static Signer: typeof XmtpErrorSigner

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:389


static stackTraceLimit: number

Defined in: node_modules/.pnpm/@types+node@26.5.1/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.

Error.stackTraceLimit


readonly static Storage: typeof XmtpErrorStorage

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:415


readonly static StorageBusy: typeof XmtpErrorStorageBusy

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:384


readonly static StorageLocation: typeof XmtpErrorStorageLocation

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:420


readonly static StorageLocationRequired: typeof XmtpErrorStorageLocationRequired

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:382


readonly static TaskRunnerDisabled: typeof XmtpErrorTaskRunnerDisabled

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:407


readonly static TypeChanged: typeof XmtpErrorTypeChanged

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:428


readonly static TypeMismatch: typeof XmtpErrorTypeMismatch

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:427


readonly static Unimplemented: typeof XmtpErrorUnimplemented

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:405


readonly static Unknown: typeof XmtpErrorUnknown

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:440


readonly static UnknownField: typeof XmtpErrorUnknownField

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:423


readonly static UnsupportedType: typeof XmtpErrorUnsupportedType

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:426


readonly static UserLimitExceeded: typeof XmtpErrorUserLimitExceeded

Defined in: sdks/browser/dist/typescript-pure/public-values.gen.d.ts:434

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/.pnpm/@types+node@26.5.1/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();

object

Function

void

Error.captureStackTrace


static isError(error): error is Error

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.esnext.error.d.ts:21

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

Error.isError


static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/.pnpm/@types+node@26.5.1/node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Error.prepareStackTrace