{"version":3,"file":"ApiError.mjs","sources":["../../../../src/models/http/ApiError.ts"],"sourcesContent":["/**\n * Represents an API error\n *\n * @remarks\n * If the error originates from the Chat API, the code and type property will be present.\n *\n * @public\n */\nexport class ApiError extends Error {\n  /** The error message. */\n  public message: string;\n\n  /** The request status code */\n  public statusCode?: number;\n  /** The internal API error code. */\n  public apiCode?: number;\n  /** The internal API error type. */\n  public type?: string;\n\n  /** @internal */\n  constructor(\n    message: string,\n    statusCode?: number,\n    apiCode?: number,\n    type?: string\n  ) {\n    super(message);\n\n    this.statusCode = statusCode;\n    this.message = message;\n    this.apiCode = apiCode;\n    this.type = type;\n  }\n}\n"],"names":[],"mappings":"AAAA;;;;;;;AAOG;AACG,MAAO,QAAS,SAAQ,KAAK,CAAA;;AAE1B,IAAA,OAAO,CAAS;;AAGhB,IAAA,UAAU,CAAU;;AAEpB,IAAA,OAAO,CAAU;;AAEjB,IAAA,IAAI,CAAU;;AAGrB,IAAA,WAAA,CACE,OAAe,EACf,UAAmB,EACnB,OAAgB,EAChB,IAAa,EAAA;QAEb,KAAK,CAAC,OAAO,CAAC,CAAC;AAEf,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACvB,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACvB,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;KAClB;AACF;;;;"}