@vinejs/vine - v4.0.0-next.1
    Preparing search index...

    Interface ErrorReporterContract

    Contract interface that all error reporters must implement. Error reporters are responsible for collecting validation errors and formatting them into appropriate error objects.

    class CustomErrorReporter implements ErrorReporterContract {
    report(message: string, rule: string, field: FieldContext) {
    // Custom error reporting logic
    }

    createError(): ValidationError {
    return new ValidationError(this.getErrors())
    }
    }
    interface ErrorReporterContract {
        createError(): ValidationError;
    }

    Hierarchy

    • ErrorReporterContract
      • ErrorReporterContract

    Implemented by

    Index

    Methods

    Methods