import { ExtendableError } from '../class/Error/ExtendableError'; /** * 用于与原生APP交互产生的异常 * * 基本用例 * * ```ts * import { BusinessError } from 'sunny-js' * throw new BusinessError(100, '接口调用失败') * ``` * * @category 请求 */ export declare class BusinessError extends ExtendableError { code: TCode; response: TResponse; /** * @param code 接口状态码 * @param message 接口状态消息 * @param response 接口响应数据 */ constructor(code: TCode, message: string, response: TResponse); }