meshcore.js
ReferenceClasses

MessageTooLongError

Defined in: packages/client/src/errors.ts:97

Thrown when a plain string does not fit its text budget; MessageBuilder with setOverflow('truncate' | 'split') avoids it instead of throwing.

Extends

Constructors

Constructor

new MessageTooLongError(bytes, limit): MessageTooLongError;

Defined in: packages/client/src/errors.ts:105

Parameters

bytes

number

Size of the message

limit

number

Budget it had to fit in

Returns

MessageTooLongError

Overrides

MeshcoreError.constructor

Properties

bytes

readonly bytes: number;

Defined in: packages/client/src/errors.ts:98


code

readonly code: string;

Defined in: packages/transports/src/errors.ts:3

Inherited from

MeshcoreError.code


limit

readonly limit: number;

Defined in: packages/client/src/errors.ts:99

On this page