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, toStringpublic BodyProcessorException(String message, Throwable cause, String actualContentType, BodyProcessorException.BodyProcessorErrorType errorType)
public String getActualContentType()
public BodyProcessorException.BodyProcessorErrorType getErrorType()
public JsonObject toJson()
BadRequestExceptiontoJson in class BadRequestExceptionpublic 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 © 2021 Eclipse. All rights reserved.