@fairmint/canton-node-sdk
Version:
Canton Node SDK
29 lines • 1.19 kB
TypeScript
/** Base error class for all Canton SDK errors */
export declare class CantonError extends Error {
readonly code: string;
readonly context?: Record<string, unknown> | undefined;
constructor(message: string, code: string, context?: Record<string, unknown> | undefined);
}
/** Error thrown when configuration is invalid or missing */
export declare class ConfigurationError extends CantonError {
constructor(message: string);
}
/** Error thrown when authentication fails */
export declare class AuthenticationError extends CantonError {
constructor(message: string);
}
/** Error thrown when API requests fail */
export declare class ApiError extends CantonError {
readonly status?: number | undefined;
readonly statusText?: string | undefined;
constructor(message: string, status?: number | undefined, statusText?: string | undefined);
}
/** Error thrown when parameter validation fails */
export declare class ValidationError extends CantonError {
constructor(message: string);
}
/** Error thrown when network requests fail */
export declare class NetworkError extends CantonError {
constructor(message: string);
}
//# sourceMappingURL=errors.d.ts.map