public class ParameterProcessorException extends BadRequestException
Modifier and Type | Class and Description |
---|---|
static class |
ParameterProcessorException.ParameterProcessorErrorType |
Constructor and Description |
---|
ParameterProcessorException(String message,
String parameterName,
io.vertx.ext.web.validation.impl.ParameterLocation location,
ParameterProcessorException.ParameterProcessorErrorType errorType,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static ParameterProcessorException |
createMissingParameterWhenRequired(String parameterName,
io.vertx.ext.web.validation.impl.ParameterLocation location) |
static ParameterProcessorException |
createParsingError(String parameterName,
io.vertx.ext.web.validation.impl.ParameterLocation location,
MalformedValueException cause) |
static ParameterProcessorException |
createValidationError(String parameterName,
io.vertx.ext.web.validation.impl.ParameterLocation location,
Throwable cause) |
ParameterProcessorException.ParameterProcessorErrorType |
getErrorType() |
io.vertx.ext.web.validation.impl.ParameterLocation |
getLocation() |
String |
getParameterName() |
JsonObject |
toJson()
Returns a Json representation of the exception
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ParameterProcessorException(String message, String parameterName, io.vertx.ext.web.validation.impl.ParameterLocation location, ParameterProcessorException.ParameterProcessorErrorType errorType, Throwable cause)
public String getParameterName()
public io.vertx.ext.web.validation.impl.ParameterLocation getLocation()
public ParameterProcessorException.ParameterProcessorErrorType getErrorType()
public JsonObject toJson()
BadRequestException
toJson
in class BadRequestException
public static ParameterProcessorException createMissingParameterWhenRequired(String parameterName, io.vertx.ext.web.validation.impl.ParameterLocation location)
public static ParameterProcessorException createParsingError(String parameterName, io.vertx.ext.web.validation.impl.ParameterLocation location, MalformedValueException cause)
public static ParameterProcessorException createValidationError(String parameterName, io.vertx.ext.web.validation.impl.ParameterLocation location, Throwable cause)
Copyright © 2023 Eclipse. All rights reserved.