@ronnakamoto/inp-middleware
Version:
INP Protocol middleware for Express.js and Next.js applications - API-driven implementation with automatic metrics integration
27 lines • 892 B
TypeScript
/**
* INP Middleware Error Classes
*
* Custom error classes for the INP middleware library
*/
export declare class INPError extends Error {
readonly code: string;
readonly statusCode: number;
readonly details?: any;
constructor(message: string, code?: string, statusCode?: number, details?: any);
}
export declare class INPValidationError extends INPError {
constructor(message: string, details?: any);
}
export declare class INPPaymentError extends INPError {
constructor(message: string, details?: any);
}
export declare class INPDiscoveryError extends INPError {
constructor(message: string, details?: any);
}
export declare class INPClientError extends INPError {
constructor(message: string, details?: any);
}
export declare class INPConfigError extends INPError {
constructor(message: string, details?: any);
}
//# sourceMappingURL=index.d.ts.map