@coinbase/cdp-sdk
Version:
SDK for interacting with the Coinbase Developer Platform Wallet API
35 lines • 993 B
JavaScript
/**
* TimeoutError is thrown when an operation times out.
*/
export class TimeoutError extends Error {
/**
* Initializes a new TimeoutError instance.
*
* @param message - The error message.
*/
constructor(message = "Timeout Error") {
super(message);
this.name = "TimeoutError";
if (Error.captureStackTrace) {
Error.captureStackTrace(this, TimeoutError);
}
}
}
/**
* UserInputValidationError is thrown when validation of a user-supplied input fails.
*/
export class UserInputValidationError extends Error {
/**
* Initializes a new UserInputValidationError instance.
*
* @param message - The user input validation error message.
*/
constructor(message) {
super(message);
this.name = "UserInputValidationError";
if (Error.captureStackTrace) {
Error.captureStackTrace(this, UserInputValidationError);
}
}
}
//# sourceMappingURL=errors.js.map