Class ValidationException

All Implemented Interfaces:
Serializable

public class ValidationException extends CamelExchangeException
Base class for all validation exceptions, such as
invalid reference
org.apache.camel.support.processor.validation.SchemaValidationException
, so that callers can catch all validation failures in a single handler irrespective of the particular validation technology used.
See Also:
  • Constructor Details

    • ValidationException

      public ValidationException(@Nullable Exchange exchange, @Nullable String message)
      Parameters:
      exchange - the exchange that failed validation
      message - the detail message
    • ValidationException

      public ValidationException(@Nullable String message, @Nullable Exchange exchange, @Nullable Throwable cause)
      Parameters:
      message - the detail message
      exchange - the exchange that failed validation
      cause - the cause of the failure