export class ClarizenApiError extends Error {
    errorCode;
    referenceId;
    status;
    constructor(status, body) {
        super(body.message);
        this.name = "ClarizenApiError";
        this.status = status;
        this.errorCode = body.errorCode;
        this.referenceId = body.referenceId;
    }
    isSessionTimeout() {
        return this.errorCode === "SessionTimeout";
    }
}
//# sourceMappingURL=errors.js.map