/**
 * Error handling utilities
 */
/**
 * Custom error class for SHAAM format generation errors
 */
export class ShaamFormatError extends Error {
    errors;
    constructor(message, errors = []) {
        super(message);
        this.errors = errors;
        this.name = 'ShaamFormatError';
    }
}
/**
 * Creates a validation error object
 */
export function createValidationError(recordType, recordIndex, field, message) {
    return {
        recordType,
        recordIndex,
        field,
        message,
    };
}
//# sourceMappingURL=errors.js.map