@accounter/server
Version:
Accounter GraphQL server
16 lines (15 loc) • 499 B
TypeScript
/**
* Error handling utilities
*/
import type { ValidationError } from '../types/index.js';
/**
* 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;