export default class NameApiError extends Error {
    constructor(message: string, public catchedError:any, public httpStatusCode: number, public response:any) {
      super(message);
      this.name = this.constructor.name;
      this.response = response;
      this.httpStatusCode = httpStatusCode;
      Error.captureStackTrace(this, this.constructor);
    }
  }