Package net.morimekta.util.json
Class UncheckedJsonException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.morimekta.util.json.UncheckedJsonException
-
- All Implemented Interfaces:
java.io.Serializable
,Displayable
,Stringable
public class UncheckedJsonException extends java.lang.RuntimeException implements Stringable, Displayable
Unchecked (runtime) JsonException wrapper that can be used in streams etc.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UncheckedJsonException(JsonException e)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
asString()
Deprecated.java.lang.String
displayString()
JsonException
getCause()
int
getLen()
java.lang.String
getLine()
int
getLineNo()
int
getLinePos()
java.lang.String
getLocalizedMessage()
java.lang.String
getMessage()
java.lang.String
toString()
-
-
-
Constructor Detail
-
UncheckedJsonException
public UncheckedJsonException(JsonException e)
-
-
Method Detail
-
getCause
public JsonException getCause()
- Overrides:
getCause
in classjava.lang.Throwable
-
getLine
public java.lang.String getLine()
-
getLineNo
public int getLineNo()
-
getLinePos
public int getLinePos()
-
getLen
public int getLen()
-
asString
@Deprecated public java.lang.String asString()
Deprecated.Description copied from interface:Stringable
Make a string representation of the instance value.- Specified by:
asString
in interfaceStringable
- Returns:
- The string representation.
-
displayString
@Nonnull public java.lang.String displayString()
- Specified by:
displayString
in interfaceDisplayable
- Returns:
- A displayable string value for the object. This is meant to be printed e.g. to console output and interpreted by a human.
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
getLocalizedMessage
public java.lang.String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in classjava.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
-