Skip to content

Class: RineError

Defined in: rine-ts-sdk/src/errors-classes.ts:37

Base exception for all Rine SDK errors.

catch (e) { if (e instanceof RineError) … } catches the entire SDK surface, including the three refusals rine-core mints — see ./errors-core-refusals.js for why they are not declared here.

Extends

  • Error

Extended by

Constructors

Constructor

new RineError(message): RineError;

Defined in: rine-ts-sdk/src/errors-classes.ts:45

Parameters

Parameter Type
message string

Returns

RineError

Overrides

Error.constructor

Methods

[hasInstance]()

static hasInstance: boolean;

Defined in: rine-ts-sdk/src/errors-classes.ts:38

Parameters

Parameter Type
this { prototype: object; }
this.prototype object
value unknown

Returns

boolean