Class ValueInstantiationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ValueInstantiationException
    extends JsonMappingException
    Exception type used for generic failures during processing by ValueInstantiator: commonly used to wrap exceptions thrown by constructor or factory method.

    Note that this type is sibling of MismatchedInputException and InvalidDefinitionException since it is not clear if problem is with input, or type definition (or possibly neither). It is recommended that if either specific input, or type definition problem is known, a more accurate exception is used instead.

    Since:
    2.10
    See Also:
    Serialized Form
    • Field Detail

    • Constructor Detail

      • ValueInstantiationException

        protected ValueInstantiationException​(com.fasterxml.jackson.core.JsonParser p,
                                              java.lang.String msg,
                                              JavaType type,
                                              java.lang.Throwable cause)
      • ValueInstantiationException

        protected ValueInstantiationException​(com.fasterxml.jackson.core.JsonParser p,
                                              java.lang.String msg,
                                              JavaType type)
    • Method Detail

      • getType

        public JavaType getType()
        Accessor for type fully resolved type that had the problem; this should always known and available, never null