| Modifier and Type | Field and Description |
|---|---|
| private CharSequence | data
The original input data. |
| private int | errorIndex
The zero-based character offset into the string being parsed at which the error was found during parsing. |
| private static final long | serialVersionUID
serialVersionUID.
|
| Access | Constructor and Description |
|---|---|
| public | MonetaryParseException(String
the detail message message, CharSequence the parsed text, should not be null parsedData, int the position where the error is found while parsing. errorIndex)Constructs a MonetaryParseException with the specified detail message, parsed text and index. |
| public | MonetaryParseException(CharSequence
the parsed text, should not be null parsedData, int the position where the error is found while parsing. errorIndex)Constructs a MonetaryParseException with the parsed text and offset. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the index where the error was foundReturns the index where the error was found. |
| public String | Returns: the parsed input string, ornull, if null was passed as
input.Returns the string that was being parsed. |
| data | back to summary |
|---|---|
| private CharSequence data The original input data. | |
| errorIndex | back to summary |
|---|---|
| private int errorIndex The zero-based character offset into the string being parsed at which the error was found during parsing. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. serialVersionUID. | |
| MonetaryParseException | back to summary |
|---|---|
| public MonetaryParseException(String message, CharSequence parsedData, int errorIndex) Constructs a MonetaryParseException with the specified detail message, parsed text and index. A detail message is a String that describes this particular exception.
| |
| MonetaryParseException | back to summary |
|---|---|
| public MonetaryParseException(CharSequence parsedData, int errorIndex) Constructs a MonetaryParseException with the parsed text and offset. A detail message is a String that describes this particular exception.
| |
| getErrorIndex | back to summary |
|---|---|
| public int getErrorIndex() Returns the index where the error was found.
| |
| getInput | back to summary |
|---|---|
| public String getInput() Returns the string that was being parsed.
| |