@coinbase/cdp-sdk
Version:
SDK for interacting with the Coinbase Developer Platform Wallet API
23 lines (19 loc) • 750 B
text/typescript
// This file was auto-generated by Fern from our API Definition.
import type * as core from "../../core/index.js";
import * as errors from "../../errors/index.js";
import type * as CoinbaseApi from "../index.js";
export class ServiceUnavailableError extends errors.CoinbaseApiError {
constructor(body: CoinbaseApi.Error_, rawResponse?: core.RawResponse) {
super({
message: "ServiceUnavailableError",
statusCode: 503,
body: body,
rawResponse: rawResponse,
});
Object.setPrototypeOf(this, new.target.prototype);
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
this.name = this.constructor.name;
}
}