public class ParseException extends IllegalArgumentException
IllegalArgumentException
, augmented with details.Constructor and Description |
---|
ParseException(String message,
CharBuffer input)
Create instance of
ParseException . |
ParseException(String message,
CharBuffer input,
Throwable cause)
Create instance of
ParseException . |
ParseException(String message,
String input,
int position)
Create instance of
ParseException . |
ParseException(String message,
String input,
int position,
Throwable cause)
Create instance of
ParseException . |
Modifier and Type | Method and Description |
---|---|
String |
getData()
Return the raw data on which the parser operated..
|
String |
getDiagnostics()
Gets additional diagnostics.
|
int |
getPosition()
Return the approximate position where the parse error occurred.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ParseException(String message, String input, int position, Throwable cause)
ParseException
.message
- exception message.input
- parser input.position
- position where parse exception occurred.cause
- underlying exception, if any.public ParseException(String message, String input, int position)
ParseException
.message
- exception message.input
- parser input.position
- position where parse exception occurred.public ParseException(String message, CharBuffer input, Throwable cause)
ParseException
.message
- exception message.input
- current state of input buffer.cause
- underlying exception, if any.public ParseException(String message, CharBuffer input)
ParseException
.message
- exception message.input
- current state of input buffer.public String getData()
public int getPosition()
public String getDiagnostics()
Copyright © 2021 The Apache Software Foundation. All rights reserved.