UNPKG

pr-sizewise

Version:

A CLI tool that measures and reports pull request sizes for GitHub and GitLab, helping teams maintain manageable code changes.

46 lines 1.12 kB
/** * Base error class for SizeWise errors */ export declare class SizeWiseError extends Error { code: string; constructor(message: string, code: string); } /** * Configuration related errors */ export declare class ConfigError extends SizeWiseError { constructor(message: string); } /** * Authentication related errors */ export declare class AuthError extends SizeWiseError { constructor(message: string); } /** * Platform/Provider related errors */ export declare class PlatformError extends SizeWiseError { constructor(message: string); } /** * API related errors */ export declare class APIError extends SizeWiseError { statusCode?: number | undefined; constructor(message: string, statusCode?: number | undefined); } /** * Validation related errors */ export declare class ValidationError extends SizeWiseError { constructor(message: string); } /** * Error handler function that processes errors and returns appropriate error messages */ export declare function handleError(error: unknown): { message: string; code: string; }; //# sourceMappingURL=errors.d.ts.map