Package io.vertx.ext.web.validation
Class BadRequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.vertx.core.VertxException
-
- io.vertx.ext.web.validation.BadRequestException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BodyProcessorException
,ParameterProcessorException
,RequestPredicateException
public abstract class BadRequestException extends VertxException
Represents an exception while processing a request withValidationHandler
. Possible failures could be:ParameterProcessorException
: Failure while processing the request parameterBodyProcessorException
: Failure while processing the request bodyRequestPredicateException
: A request predicate doesn't match
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BadRequestException(String message, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonObject
toJson()
Returns a Json representation of the exception-
Methods inherited from class io.vertx.core.VertxException
noStackTrace, noStackTrace, noStackTrace
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
toJson
public JsonObject toJson()
Returns a Json representation of the exception- Returns:
-
-