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
,Stringable
public class UncheckedJsonException extends java.lang.RuntimeException implements Stringable
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 Modifier and Type Method Description java.lang.String
asString()
Make a string representation of the instance value.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
public java.lang.String asString()
Description copied from interface:Stringable
Make a string representation of the instance value.- Specified by:
asString
in interfaceStringable
- Returns:
- The string representation.
-
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
-
-