export class CodoriError extends Error {
    code;
    details;
    constructor(code, message, details) {
        super(message);
        this.name = 'CodoriError';
        this.code = code;
        this.details = details;
    }
}
export const asErrorMessage = (error) => error instanceof Error ? error.message : String(error);
