JsonMappingExceptions
that are due to input not mapping to target definition; these are typically
considered "client errors" since target type definition itself is not the root cause
but mismatching input. This is in contrast to InvalidDefinitionException which
signals a problem with target type definition and not input.
This type is used as-is for some input problems, but in most cases there should be more explicit subtypes to use.
Note
name chosen to differ from `java.util.InputMismatchException` since while that would have been better name, use of same overlapping name causes nasty issues with IDE auto-completion, so slightly less optimal chosen.
| Modifier and Type | Field and Description |
|---|---|
| protected Class | _targetType
Type of value that was to be deserialized |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static MismatchedInputException | from(JsonParser p, String msg)
Hides com.
Deprecated
|
| public static MismatchedInputException | |
| public static MismatchedInputException | |
| public Class | getTargetType()
Accessor for getting intended target type, with which input did not match, if known; `null` if not known for some reason. |
| public MismatchedInputException |
| _targetType | back to summary |
|---|---|
| protected Class<?> _targetType Type of value that was to be deserialized | |
| MismatchedInputException | back to summary |
|---|---|
| protected MismatchedInputException(JsonParser p, String msg) | |
| MismatchedInputException | back to summary |
|---|---|
| protected MismatchedInputException(JsonParser p, String msg, JsonLocation loc) | |
| MismatchedInputException | back to summary |
|---|---|
| protected MismatchedInputException(JsonParser p, String msg, Class<?> targetType) | |
| MismatchedInputException | back to summary |
|---|---|
| protected MismatchedInputException(JsonParser p, String msg, JavaType targetType) | |
| from | back to summary |
|---|---|
| public static MismatchedInputException from(JsonParser p, String msg) Hides com. Deprecated
| |
| from | back to summary |
|---|---|
| public static MismatchedInputException from(JsonParser p, JavaType targetType, String msg) | |
| from | back to summary |
|---|---|
| public static MismatchedInputException from(JsonParser p, Class<?> targetType, String msg) | |
| getTargetType | back to summary |
|---|---|
| public Class Accessor for getting intended target type, with which input did not match, if known; `null` if not known for some reason. | |
| setTargetType | back to summary |
|---|---|
| public MismatchedInputException setTargetType(JavaType t) | |