Skip to main content

@usdctofiat/offramp


@usdctofiat/offramp / MakersCreateError

Class: MakersCreateError

Defined in: packages/offramp-sdk/src/errors.ts:13

Error thrown when curator's /v2/makers/create returns a non-success response. Preserves the HTTP status so callers can distinguish a "needs Peer-extension registration" 400 from a transient server error.

offramp() re-raises this as an OfframpError with code EXTENSION_REGISTRATION_REQUIRED (for PayPal/Wise 400s) or REGISTRATION_FAILED (for any other curator error); MakersCreateError is attached as the cause.

Extends

  • Error

Constructors

Constructor

new MakersCreateError(message, status, body): MakersCreateError

Defined in: packages/offramp-sdk/src/errors.ts:17

Parameters

message

string

status

number | null

body

string

Returns

MakersCreateError

Overrides

Error.constructor

Properties

body

readonly body: string

Defined in: packages/offramp-sdk/src/errors.ts:15


cause?

optional cause?: unknown

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

Inherited from

Error.cause


message

message: string

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

Inherited from

Error.message


name

name: string

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

Inherited from

Error.name


stack?

optional stack?: string

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

Inherited from

Error.stack


status

readonly status: number | null

Defined in: packages/offramp-sdk/src/errors.ts:14