java.lang.Object |
↳ |
java.lang.Throwable |
|
↳ |
java.lang.Exception |
|
|
↳ |
com.pnfsoftware.jeb.util.encoding.json.parser.ParseException |
Class Overview
ParseException explains why and where the error occurs in source JSON text.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Throwable
synchronized
final
void
|
addSuppressed(Throwable arg0)
|
synchronized
Throwable
|
fillInStackTrace()
|
synchronized
Throwable
|
getCause()
|
String
|
getLocalizedMessage()
|
String
|
getMessage()
|
StackTraceElement[]
|
getStackTrace()
|
synchronized
final
Throwable[]
|
getSuppressed()
|
synchronized
Throwable
|
initCause(Throwable arg0)
|
void
|
printStackTrace()
|
void
|
printStackTrace(PrintWriter arg0)
|
void
|
printStackTrace(PrintStream arg0)
|
void
|
setStackTrace(StackTraceElement[] arg0)
|
String
|
toString()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Constants
public
static
final
int
ERROR_UNEXPECTED_CHAR
Constant Value:
0
(0x00000000)
public
static
final
int
ERROR_UNEXPECTED_EXCEPTION
Constant Value:
2
(0x00000002)
public
static
final
int
ERROR_UNEXPECTED_TOKEN
Constant Value:
1
(0x00000001)
Public Constructors
public
ParseException
(int errorType)
public
ParseException
(int errorType, Object unexpectedObject)
public
ParseException
(long position, int errorType, Object unexpectedObject)
Public Methods
public
int
getErrorType
()
public
String
getMessage
()
public
long
getPosition
()
Returns
- The character position (starting with 0) of the input where the error occurs.
public
Object
getUnexpectedObject
()
Returns
- One of the following base on the value of errorType:
ERROR_UNEXPECTED_CHAR java.lang.Character
ERROR_UNEXPECTED_TOKEN org.json.simple.parser.Yytoken
ERROR_UNEXPECTED_EXCEPTION java.lang.Exception
See Also
- org.json.simple.parser.Yytoken
public
void
setErrorType
(int errorType)
public
void
setPosition
(int position)
public
void
setUnexpectedObject
(Object unexpectedObject)