Package org.apache.juneau.httppart
Class SchemaValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.juneau.BasicRuntimeException
org.apache.juneau.parser.ParseException
org.apache.juneau.httppart.SchemaValidationException
- All Implemented Interfaces:
Serializable
Exception thrown when an HTTP part fails schema validation during parsing.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the highest-levelParseException in the stack trace.setMessage(String message, Object... args) Sets the detail message on this exception.Methods inherited from class org.apache.juneau.parser.ParseException
createMethods inherited from class org.apache.juneau.BasicRuntimeException
getMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SchemaValidationException
Constructor.- Parameters:
message- TheMessageFormat-style message.args- OptionalMessageFormat-style arguments.
-
-
Method Details
-
getRootCause
Description copied from class:ParseExceptionReturns the highest-levelParseException in the stack trace.Useful for JUnit testing of error conditions.
- Overrides:
getRootCausein classParseException- Returns:
- The root parse exception, or this exception if there isn't one.
-
setMessage
Description copied from class:BasicRuntimeExceptionSets the detail message on this exception.- Overrides:
setMessagein classParseException- Parameters:
message- The message.args- The message args.- Returns:
- This object.
-