Duffer Derek

Current Path : /var/www/podio-api-client/src/exceptions/
Upload File :
Current File : /var/www/podio-api-client/src/exceptions/PodioError.ts

import { PodioErrorResponse } from '../types/podioError.type';

/**
 * Podio error base class.
 * All the podio related error class will inherit from this base class.
 *
 */
export default class PodioError extends Error {
  /**
   *
   * @param {string} message
   */
  constructor(readonly message: string, readonly response: PodioErrorResponse, readonly statusCode: number = 0) {
    super(message);
    this.name = this.constructor.name;
  }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists