import Exception from "./Exception";
import ExceptionCode from "./ExceptionCode";
export default class APIException extends Exception {
    get error() {
        return this._error || null;
    }
    set error(v) {
        this._error = v;
    }
    constructor(message, error) {
        super(ExceptionCode.APIException, message);
        this._error = null;
        if (error) {
            this.error = error;
        }
    }
}
//# sourceMappingURL=ApiException.js.map