Type Alias ViolationErrorParam<T>

ViolationErrorParam<T>: {
    message: string;
    metadata?: Record<string, any>;
    type: T;
}

Parameters for constructing a ViolationError

Type Parameters

  • T extends string = string

Type declaration

  • message: string

    A human-readable description of what went wrong

  • Optionalmetadata?: Record<string, any>

    Optional structured data providing additional context about the error

  • type: T

    The specific type/category of the violation