PHP WebShell

Текущая директория: /opt/BitGoJS/modules/sdk-core/src/account-lib/baseCoin

Просмотр файла: errors.ts

/**
 * This base class ensures that our stack trace is captured properly but also that we have classes of errors
 * that can be found in a switch.
 */
export class ExtendableError extends Error {
  constructor(message) {
    super(message);
    this.name = this.constructor.name;
    if (typeof Error.captureStackTrace === 'function') {
      Error.captureStackTrace(this, this.constructor);
    } else {
      this.stack = new Error(message).stack;
    }
  }
}

export class ParseTransactionError extends ExtendableError {
  constructor(message: string) {
    super(message);
  }
}

export class SigningError extends ExtendableError {
  constructor(message: string) {
    super(message);
  }
}

export class BuildTransactionError extends ExtendableError {
  constructor(message: string) {
    super(message);
  }
}

export class UtilsError extends ExtendableError {
  constructor(message: string) {
    super(message);
  }
}

export class ExtendTransactionError extends ExtendableError {
  constructor(message: string) {
    super(message);
  }
}

/**
 * Error for an invalid value for a contract method parameter
 */
export class InvalidParameterValueError extends ExtendableError {
  constructor(message: string) {
    super(message);
  }
}

/**
 * Error produced by not truthy signature values
 */
export class InvalidSignatureError extends ExtendableError {
  constructor(message: string) {
    super(message);
  }
}

/**
 * Error for a method that needs to be implemented
 */
export class NotImplementedError extends ExtendableError {
  constructor(message: string) {
    super(message);
  }
}

/**
 * Error for not supported features
 */
export class NotSupported extends ExtendableError {
  constructor(message: string) {
    super(message);
  }
}

/**
 * Error for invalid seed, public, or private keys
 */
export class InvalidKey extends ExtendableError {
  constructor(message: string) {
    super(message);
  }
}

/**
 * Error for invalid mint/token
 */
export class UnsupportedTokenError extends ExtendableError {
  constructor(message: string) {
    super(message);
  }
}

export class DuplicateMethodError extends ExtendableError {
  constructor(message: string) {
    super(message);
  }
}

Выполнить команду


Для локальной разработки. Не используйте в интернете!