com.fasterxml.jackson.databind

Class DatabindException

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    JsonMappingException


    public abstract class DatabindException
    extends com.fasterxml.jackson.core.JsonProcessingException
    Intermediate base class for all databind level processing problems, as distinct from stream-level problems or I/O issues below.

    Added in 2.13 to eventually replace JsonMappingException; for 2.x will allow limited use as target (as catching it will also catch mapping exception) but will not be constructed or thrown directly.

    Since:
    2.13
    See Also:
    Serialized Form
    • Constructor Detail

      • DatabindException

        protected DatabindException(String msg,
                                    com.fasterxml.jackson.core.JsonLocation loc,
                                    Throwable rootCause)
      • DatabindException

        protected DatabindException(String msg)
      • DatabindException

        protected DatabindException(String msg,
                                    com.fasterxml.jackson.core.JsonLocation loc)
      • DatabindException

        protected DatabindException(String msg,
                                    Throwable rootCause)
    • Method Detail

      • prependPath

        public abstract void prependPath(Object referrer,
                                         String fieldName)
        Method called to prepend a reference information in front of current path
      • prependPath

        public abstract void prependPath(Object referrer,
                                         int index)
        Method called to prepend a reference information in front of current path

Copyright © 2008–2023 FasterXML. All rights reserved.