Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InvalidPayoutSubjectError

label

ERRORS

description

This class is used for more transparent error handling and indicates an error that happened due to some unknown payout subject type being used. This error is thrown by the static {@link PayoutSchema.fetchSubject}.

example

Throwing a InvalidPayoutSubjectError error

throw new InvalidPayoutSubjectError("This subject is invalid.");



since

v0.3.0

Hierarchy

Index

Constructors

Properties

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc