@accounter/shaam-uniform-format-generator
Version:
Fully typed application that generates, parses, and validates SHAAM uniform format tax reports (INI.TXT and BKMVDATA.TXT).
16 lines (15 loc) • 500 B
text/typescript
/**
* Error handling utilities
*/
import type { ValidationError } from '../types/index.cjs';
/**
* Custom error class for SHAAM format generation errors
*/
export declare class ShaamFormatError extends Error {
readonly errors: ValidationError[];
constructor(message: string, errors?: ValidationError[]);
}
/**
* Creates a validation error object
*/
export declare function createValidationError(recordType: string, recordIndex: number, field: string, message: string): ValidationError;