export class TauSdkError extends Error {
    constructor(message, options) {
        super(message, options);
        this.name = "TauSdkError";
    }
}
export class TauRpcResponseError extends TauSdkError {
    code;
    requestId;
    data;
    constructor(options) {
        super(options.error.message);
        this.name = "TauRpcResponseError";
        this.code = options.error.code;
        this.requestId = options.requestId;
        this.data = options.error.data;
    }
}
export class TauTransportError extends TauSdkError {
    constructor(message, options) {
        super(message, options);
        this.name = "TauTransportError";
    }
}
export class TauProcessError extends TauTransportError {
    exitCode;
    signal;
    stderr;
    constructor(message, options) {
        super(message, options?.cause === undefined ? undefined : { cause: options.cause });
        this.name = "TauProcessError";
        this.exitCode = options?.exitCode ?? null;
        this.signal = options?.signal ?? null;
        this.stderr = options?.stderr ?? "";
    }
}
//# sourceMappingURL=errors.js.map