Class InvalidTypeIdException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.fasterxml.jackson.core.JacksonException
-
- com.fasterxml.jackson.core.JsonProcessingException
-
- com.fasterxml.jackson.databind.JsonMappingException
-
- com.fasterxml.jackson.databind.exc.MismatchedInputException
-
- com.fasterxml.jackson.databind.exc.InvalidTypeIdException
-
- All Implemented Interfaces:
java.io.Serializable
public class InvalidTypeIdException extends MismatchedInputException
Exception thrown when resolution of a type id fails.- Since:
- 2.8
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonMappingException
JsonMappingException.Reference
-
-
Field Summary
Fields Modifier and Type Field Description protected JavaType
_baseType
Basetype for which subtype was to be resolvedprotected java.lang.String
_typeId
Type id that failed to be resolved to a subtype; `null` in cases where no type id was located (since 2.9).-
Fields inherited from class com.fasterxml.jackson.databind.exc.MismatchedInputException
_targetType
-
Fields inherited from class com.fasterxml.jackson.databind.JsonMappingException
_path, _processor
-
-
Constructor Summary
Constructors Constructor Description InvalidTypeIdException(com.fasterxml.jackson.core.JsonParser p, java.lang.String msg, JavaType baseType, java.lang.String typeId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InvalidTypeIdException
from(com.fasterxml.jackson.core.JsonParser p, java.lang.String msg, JavaType baseType, java.lang.String typeId)
JavaType
getBaseType()
java.lang.String
getTypeId()
-
Methods inherited from class com.fasterxml.jackson.databind.exc.MismatchedInputException
from, from, from, getTargetType, setTargetType
-
Methods inherited from class com.fasterxml.jackson.databind.JsonMappingException
_appendPathDesc, _buildMessage, from, from, from, from, from, from, from, fromUnexpectedIOE, getLocalizedMessage, getMessage, getPath, getPathReference, getPathReference, getProcessor, prependPath, prependPath, prependPath, toString, wrapWithPath, wrapWithPath, wrapWithPath
-
Methods inherited from class com.fasterxml.jackson.core.JsonProcessingException
clearLocation, getLocation, getMessageSuffix, getOriginalMessage
-
-
-
-
Field Detail
-
_baseType
protected final JavaType _baseType
Basetype for which subtype was to be resolved
-
_typeId
protected final java.lang.String _typeId
Type id that failed to be resolved to a subtype; `null` in cases where no type id was located (since 2.9).
-
-
Constructor Detail
-
InvalidTypeIdException
public InvalidTypeIdException(com.fasterxml.jackson.core.JsonParser p, java.lang.String msg, JavaType baseType, java.lang.String typeId)
-
-
Method Detail
-
from
public static InvalidTypeIdException from(com.fasterxml.jackson.core.JsonParser p, java.lang.String msg, JavaType baseType, java.lang.String typeId)
-
getBaseType
public JavaType getBaseType()
-
getTypeId
public java.lang.String getTypeId()
-
-