Serializablepublic class MonetaryParseException extends MonetaryException
| Constructor | 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 | Description |
|---|---|---|
int |
getErrorIndex() |
Returns the index where the error was found.
|
String |
getInput() |
Returns the string that was being parsed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, 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–2018 JSR 354 - Expert Group. All rights reserved.