export interface ApiError {
    code: number;
    message: string;
    details?: any;
}

export class BusinessError extends Error {
    constructor(
        public code: number,
        message: string,
        public details?: any
    ) {
        super(message);
        this.name = 'BusinessError';
    }
} 