arvo-core
    Preparing search index...

    Type Alias ViolationErrorParam<T>

    Parameters for constructing a ViolationError

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

    Type Parameters

    • T extends string = string
    Index

    Properties

    message: string

    A human-readable description of what went wrong

    metadata?: Record<string, any>

    Optional structured data providing additional context about the error

    type: T

    The specific type/category of the violation