public class MonetaryParseException extends MonetaryException
Constructor and Description |
---|
MonetaryParseException(java.lang.CharSequence parsedData,
int errorIndex)
Constructs a MonetaryParseException with the parsed text and offset.
|
MonetaryParseException(java.lang.String message,
java.lang.CharSequence parsedData,
int errorIndex)
Constructs a MonetaryParseException with the specified detail message,
parsed text and index.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorIndex()
Returns the index where the error was found.
|
java.lang.String |
getInput()
Returns the string that was being parsed.
|
public MonetaryParseException(java.lang.CharSequence parsedData, int errorIndex)
parsedData
- the parsed text, should not be nullerrorIndex
- the position where the error is found while parsing.public MonetaryParseException(java.lang.String message, java.lang.CharSequence parsedData, int errorIndex)
message
- the detail messageparsedData
- the parsed text, should not be nullerrorIndex
- the position where the error is found while parsing.public int getErrorIndex()
public java.lang.String getInput()
null
, if null
was passed as
input.