{"version":3,"sources":["../../../../src/lib/rest/HypixelAPIError.ts"],"sourcesContent":["/**\n * Response body when an error is returned by the hypixel api\n * @category Rest\n * @group Rest\n */\nexport interface HypixelAPIErrorResponse {\n\t/**\n\t * Whether or not the request is successful\n\t */\n\tsuccess: boolean;\n\n\t/**\n\t * The message explaining the error\n\t */\n\tcause: string;\n}\n\n/**\n * Error thrown when an error is encountered while querying the hypixel API\n * @category Rest\n * @group Rest\n */\nexport class HypixelAPIError extends Error {\n\tpublic code: number;\n\n\tpublic constructor(message: string, code: number) {\n\t\tsuper(message);\n\t\tthis.message = message;\n\t\tthis.code = code;\n\t}\n}\n"],"mappings":";;;;AAsBO,IAAM,kBAAN,cAA8B,MAAM;AAAA,EAtB3C,OAsB2C;AAAA;AAAA;AAAA,EACnC;AAAA,EAEA,YAAY,SAAiB,MAAc;AACjD,UAAM,OAAO;AACb,SAAK,UAAU;AACf,SAAK,OAAO;AAAA,EACb;AACD;","names":[]}