Class BodyProcessorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.vertx.core.VertxException
io.vertx.ext.web.validation.BadRequestException
io.vertx.ext.web.validation.BodyProcessorException
- All Implemented Interfaces:
Serializable
Represents an exception while processing a body
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBodyProcessorException(String message, Throwable cause, String actualContentType, BodyProcessorException.BodyProcessorErrorType errorType) -
Method Summary
Modifier and TypeMethodDescriptionstatic BodyProcessorExceptioncreateMissingMatchingBodyProcessor(String contentType) static BodyProcessorExceptioncreateParsingError(String contentType, DecodeException cause) static BodyProcessorExceptioncreateParsingError(String contentType, MalformedValueException cause) static BodyProcessorExceptioncreateValidationError(String contentType, Throwable cause) toJson()Returns a Json representation of the exceptionMethods inherited from class VertxException
noStackTrace, noStackTrace, noStackTraceMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BodyProcessorException
public BodyProcessorException(String message, Throwable cause, String actualContentType, BodyProcessorException.BodyProcessorErrorType errorType)
-
-
Method Details
-
getActualContentType
-
getErrorType
-
toJson
Description copied from class:BadRequestExceptionReturns a Json representation of the exception- Overrides:
toJsonin classBadRequestException- Returns:
-
createParsingError
public static BodyProcessorException createParsingError(String contentType, MalformedValueException cause) -
createParsingError
-
createValidationError
-
createMissingMatchingBodyProcessor
-