token-guardian
Version:
A comprehensive solution for protecting and managing API tokens and secrets
21 lines (20 loc) • 768 B
TypeScript
/**
* Custom error class for token rotation errors
*/
export declare class RotationError extends Error {
readonly code: string;
readonly details?: Record<string, unknown> | undefined;
constructor(message: string, code?: string, details?: Record<string, unknown> | undefined);
/**
* Create a RotationError for validation failures
*/
static validationError(message: string, details?: Record<string, unknown>): RotationError;
/**
* Create a RotationError for API errors
*/
static apiError(message: string, details?: Record<string, unknown>): RotationError;
/**
* Create a RotationError for configuration errors
*/
static configError(message: string, details?: Record<string, unknown>): RotationError;
}