public class BodyProcessorException extends BadRequestException
Modifier and Type | Class and Description |
---|---|
static class |
BodyProcessorException.BodyProcessorErrorType |
Constructor and Description |
---|
BodyProcessorException(String message,
Throwable cause,
String actualContentType,
BodyProcessorException.BodyProcessorErrorType errorType) |
Modifier and Type | Method and Description |
---|---|
static BodyProcessorException |
createMissingMatchingBodyProcessor(String contentType) |
static BodyProcessorException |
createParsingError(String contentType,
DecodeException cause) |
static BodyProcessorException |
createParsingError(String contentType,
MalformedValueException cause) |
static BodyProcessorException |
createValidationError(String contentType,
Throwable cause) |
String |
getActualContentType() |
BodyProcessorException.BodyProcessorErrorType |
getErrorType() |
JsonObject |
toJson()
Returns a Json representation of the exception
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BodyProcessorException(String message, Throwable cause, String actualContentType, BodyProcessorException.BodyProcessorErrorType errorType)
public String getActualContentType()
public BodyProcessorException.BodyProcessorErrorType getErrorType()
public JsonObject toJson()
BadRequestException
toJson
in class BadRequestException
public static BodyProcessorException createParsingError(String contentType, MalformedValueException cause)
public static BodyProcessorException createParsingError(String contentType, DecodeException cause)
public static BodyProcessorException createValidationError(String contentType, Throwable cause)
public static BodyProcessorException createMissingMatchingBodyProcessor(String contentType)
Copyright © 2024 Eclipse. All rights reserved.