@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
readonlybody:string
Defined in: packages/offramp-sdk/src/errors.ts:15
cause?
optionalcause?: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?
optionalstack?:string
Defined in: node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Error.stack
status
readonlystatus:number|null
Defined in: packages/offramp-sdk/src/errors.ts:14