org.apache.camel.processor.validation
Class SchemaValidationException

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
                      extended by org.apache.camel.processor.validation.SchemaValidationException
All Implemented Interfaces:
Serializable

public class SchemaValidationException
extends ValidationException

A Schema validation exception occurred

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

Constructor Summary
SchemaValidationException(Exchange exchange, Object schema, List<SAXParseException> fatalErrors, List<SAXParseException> errors, List<SAXParseException> warnings)
           
 
Method Summary
 List<SAXParseException> getErrors()
          Returns the validation errors
 List<SAXParseException> getFatalErrors()
          Returns the fatal validation errors
 Object getSchema()
          Returns the schema that failed
 List<SAXParseException> getWarnings()
          Returns the validation warnings
protected static String message(Object schema, List<SAXParseException> fatalErrors, List<SAXParseException> errors, List<SAXParseException> warnings)
           
 
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

SchemaValidationException

public SchemaValidationException(Exchange exchange,
                                 Object schema,
                                 List<SAXParseException> fatalErrors,
                                 List<SAXParseException> errors,
                                 List<SAXParseException> warnings)
Method Detail

getSchema

public Object getSchema()
Returns the schema that failed


getErrors

public List<SAXParseException> getErrors()
Returns the validation errors


getFatalErrors

public List<SAXParseException> getFatalErrors()
Returns the fatal validation errors


getWarnings

public List<SAXParseException> getWarnings()
Returns the validation warnings


message

protected static String message(Object schema,
                                List<SAXParseException> fatalErrors,
                                List<SAXParseException> errors,
                                List<SAXParseException> warnings)


Apache CAMEL