Class UnresolvedForwardReference

  • All Implemented Interfaces:
    java.io.Serializable

    public class UnresolvedForwardReference
    extends JsonMappingException
    Exception thrown during deserialization when there are object id that can't be resolved.
    See Also:
    Serialized Form
    • Constructor Detail

      • UnresolvedForwardReference

        public UnresolvedForwardReference​(JsonParser p,
                                          java.lang.String msg)
        Since:
        2.7
      • UnresolvedForwardReference

        @Deprecated
        public UnresolvedForwardReference​(java.lang.String msg,
                                          JsonLocation loc,
                                          ReadableObjectId roid)
        Deprecated.
        Since 2.7
      • UnresolvedForwardReference

        @Deprecated
        public UnresolvedForwardReference​(java.lang.String msg)
        Deprecated.
        Since 2.7
    • Method Detail

      • getUnresolvedId

        public java.lang.Object getUnresolvedId()
      • addUnresolvedId

        public void addUnresolvedId​(java.lang.Object id,
                                    java.lang.Class<?> type,
                                    JsonLocation where)
      • getUnresolvedIds

        public java.util.List<UnresolvedId> getUnresolvedIds()
      • getMessage

        public java.lang.String getMessage()
        Description copied from class: JsonMappingException
        Method is overridden so that we can properly inject description of problem path, if such is defined.
        Overrides:
        getMessage in class JsonMappingException
        Returns:
        Original message preceded by optional prefix and followed by location information, message and location information separated by a linefeed
      • fillInStackTrace

        public UnresolvedForwardReference fillInStackTrace()
        This method is overridden to prevent filling of the stack trace when constructors are called (unfortunately alternative constructors can not be used due to historical reasons). To explicitly fill in stack traces method withStackTrace() needs to be called after construction.
        Overrides:
        fillInStackTrace in class java.lang.Throwable
        Since:
        2.14
      • withStackTrace

        public UnresolvedForwardReference withStackTrace()
        "Mutant" factory method for filling in stack trace; needed since the default constructors will not fill in stack trace.
        Since:
        2.14