public class MonetaryParseException extends MonetaryException
| Constructor and Description |
|---|
MonetaryParseException(CharSequence parsedData,
int errorIndex)
Constructs a MonetaryParseException with the parsed text and offset.
|
MonetaryParseException(String message,
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.
|
String |
getInput()
Returns the string that was being parsed.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MonetaryParseException(String message, 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 MonetaryParseException(CharSequence parsedData, int errorIndex)
parsedData - the parsed text, should not be nullerrorIndex - the position where the error is found while parsing.public int getErrorIndex()
public String getInput()
null, if null was passed as
input.Copyright © 2012–2016 JSR 354 - Expert Group. All rights reserved.