Class SchemaValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.camel.CamelException
-
- org.apache.camel.CamelExchangeException
-
- org.apache.camel.ValidationException
-
- org.apache.camel.support.processor.validation.SchemaValidationException
-
- All Implemented Interfaces:
Serializable
public class SchemaValidationException extends org.apache.camel.ValidationExceptionA Schema validation exception occurred- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SchemaValidationException(org.apache.camel.Exchange exchange, Object schema, List<SAXParseException> fatalErrors, List<SAXParseException> errors, List<SAXParseException> warnings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SAXParseException>getErrors()Returns the validation errorsList<SAXParseException>getFatalErrors()Returns the fatal validation errorsObjectgetSchema()Returns the schema that failedList<SAXParseException>getWarnings()Returns the validation warningsprotected static Stringmessage(Object schema, List<SAXParseException> fatalErrors, List<SAXParseException> errors, List<SAXParseException> warnings)-
Methods inherited from class org.apache.camel.CamelExchangeException
createExceptionMessage, getExchange
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
SchemaValidationException
public SchemaValidationException(org.apache.camel.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)
-
-