Interface EDIOutputErrorReporter


  • public interface EDIOutputErrorReporter
    This interface is used to report non-fatal errors detected in an EDI input.
    Since:
    1.9
    • Method Detail

      • report

        void report​(EDIStreamValidationError errorType,
                    EDIStreamWriter writer,
                    Location location,
                    CharSequence data,
                    EDIReference typeReference)
        Report the desired message in an application specific format. Only warnings and non-fatal errors should be reported through this interface. Fatal errors will be thrown as EDIStreamExceptions.
        Parameters:
        errorType - the type of error detected
        writer - the EDIStreamWriter that encountered the error
        location - the location of the error, may be different than the location returned by the writer (e.g. for derived element positions)
        data - the invalid data, may be null (e.g. for missing required element errors)
        typeReference - the schema type reference for the invalid data, if available from the current schema used for validation