Class SvetovidJsonException

All Implemented Interfaces:
Serializable

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

    • SvetovidJsonException

      public SvetovidJsonException(JsonType requestedType, Class<?> actualType, 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, 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, Class<?> actualType, String path, 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, Class<?> actualType, 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