Package org.svetovid.util
Class SvetovidJsonException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.svetovid.SvetovidException
org.svetovid.util.SvetovidJsonException
- All Implemented Interfaces:
Serializable
Signals that an error occurred while working with JSON objects.
- Author:
- Ivan Pribela
- See Also:
-
Constructor Summary
ConstructorDescriptionSvetovidJsonException
(JsonType requestedType, Class<?> actualType) Constructs aSvetovidJsonException
with the specified message.SvetovidJsonException
(JsonType requestedType, Class<?> actualType, String path) Constructs aSvetovidJsonException
with the specified message.SvetovidJsonException
(JsonType requestedType, Class<?> actualType, String path, Throwable cause) Constructs aSvetovidJsonException
with the specified message.SvetovidJsonException
(JsonType requestedType, Class<?> actualType, Throwable cause) Constructs aSvetovidJsonException
with the specified message. -
Method Summary
Methods inherited from class org.svetovid.SvetovidException
appendStackTrace, appendStackTraceElement, appendThreadInfo, appendThrowable, getMessage, getMessage, getStackTraceString, getStackTraceString, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
SvetovidJsonException
Constructs aSvetovidJsonException
with the specified message.- Parameters:
requestedType
- The JSON type to which the object could not be castactualType
- The type of the object foundcause
- The cause, which is saved for later retrieval by theThrowable.getCause()
method. A null value is permitted, and indicates that the cause is nonexistent or unknown.
-
SvetovidJsonException
Constructs aSvetovidJsonException
with the specified message.- Parameters:
requestedType
- The JSON type to which the object could not be castactualType
- The type of the object found
-
SvetovidJsonException
public SvetovidJsonException(JsonType requestedType, Class<?> actualType, String path, Throwable cause) Constructs aSvetovidJsonException
with the specified message.- Parameters:
requestedType
- The JSON type to which the object could not be castactualType
- The type of the object foundpath
- JSON path that was usedcause
- The cause, which is saved for later retrieval by theThrowable.getCause()
method. A null value is permitted, and indicates that the cause is nonexistent or unknown.
-
SvetovidJsonException
Constructs aSvetovidJsonException
with the specified message.- Parameters:
requestedType
- The JSON type to which the object could not be castactualType
- The type of the object foundpath
- JSON path that was used
-