org.apache.camel
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.camel.CamelException
              extended by org.apache.camel.CamelExchangeException
                  extended by org.apache.camel.ValidationException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BeanValidationException, NoXmlBodyValidationException, PredicateValidationException, SchemaValidationException

public class ValidationException
extends CamelExchangeException

The base class for any validation exception, such as SchemaValidationException so that it is easy to treat all validation errors in a similar way irrespective of the particular validation technology used.

Version:
$Revision: 16342 $
See Also:
Serialized Form

Constructor Summary
ValidationException(Exchange exchange, String message)
           
ValidationException(String message, Exchange exchange, Throwable cause)
           
 
Method Summary
 
Methods inherited from class org.apache.camel.CamelExchangeException
getExchange
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationException

public ValidationException(Exchange exchange,
                           String message)

ValidationException

public ValidationException(String message,
                           Exchange exchange,
                           Throwable cause)


Apache CAMEL