Class SvetovidJsonException

  • All Implemented Interfaces:
    java.io.Serializable

    public class SvetovidJsonException
    extends SvetovidException
    Signals that an error occurred while working with JSON objects.
    Author:
    Ivan Pribela
    See Also:
    Serialized Form
    • Constructor Detail

      • SvetovidJsonException

        public SvetovidJsonException​(JsonType requestedType,
                                     java.lang.Class<?> actualType,
                                     java.lang.Throwable cause)
        Constructs a SvetovidJsonException with the specified message.
        Parameters:
        requestedType - The JSON type to which the object could not be cast
        actualType - The type of the object found
        cause - The cause, which is saved for later retrieval by the Throwable.getCause() method. A null value is permitted, and indicates that the cause is nonexistent or unknown.
      • SvetovidJsonException

        public SvetovidJsonException​(JsonType requestedType,
                                     java.lang.Class<?> actualType)
        Constructs a SvetovidJsonException with the specified message.
        Parameters:
        requestedType - The JSON type to which the object could not be cast
        actualType - The type of the object found
      • SvetovidJsonException

        public SvetovidJsonException​(JsonType requestedType,
                                     java.lang.Class<?> actualType,
                                     java.lang.String path,
                                     java.lang.Throwable cause)
        Constructs a SvetovidJsonException with the specified message.
        Parameters:
        requestedType - The JSON type to which the object could not be cast
        actualType - The type of the object found
        path - JSON path that was used
        cause - The cause, which is saved for later retrieval by the Throwable.getCause() method. A null value is permitted, and indicates that the cause is nonexistent or unknown.
      • SvetovidJsonException

        public SvetovidJsonException​(JsonType requestedType,
                                     java.lang.Class<?> actualType,
                                     java.lang.String path)
        Constructs a SvetovidJsonException with the specified message.
        Parameters:
        requestedType - The JSON type to which the object could not be cast
        actualType - The type of the object found
        path - JSON path that was used