- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- life.expert.value.numeric.utils.ValueException
-
- life.expert.value.numeric.utils.AmountParseException
-
- All Implemented Interfaces:
java.io.Serializable
public class AmountParseException extends ValueException
Signals that an error has been reached unexpectedly while parsing.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AmountParseException(java.lang.CharSequence parsedData, int errorIndex)Constructs a MonetaryParseException with the parsed text and offset.AmountParseException(java.lang.String message, java.lang.CharSequence parsedData, int errorIndex)Constructs a AmountParseException with the specified detail message, parsed text and index.
-
Method Summary
Modifier and Type Method Description intgetErrorIndex()Returns the index where the error was found.java.lang.StringgetInput()Returns the string that was being parsed.
-
-
-
Constructor Detail
-
AmountParseException
public AmountParseException(java.lang.String message, java.lang.CharSequence parsedData, int errorIndex)Constructs a AmountParseException with the specified detail message, parsed text and index. A detail message is a String that describes this particular exception.- Parameters:
message- the detail messageparsedData- the parsed text, should not be nullerrorIndex- the position where the error is found while parsing.
-
AmountParseException
public AmountParseException(java.lang.CharSequence parsedData, int errorIndex)Constructs a MonetaryParseException with the parsed text and offset. A detail message is a String that describes this particular exception.- Parameters:
parsedData- the parsed text, should not be nullerrorIndex- the position where the error is found while parsing.
-
-
Method Detail
-
getErrorIndex
public int getErrorIndex()
Returns the index where the error was found.- Returns:
- the index where the error was found
-
getInput
public java.lang.String getInput()
Returns the string that was being parsed.- Returns:
- the parsed input string, or
null, ifnullwas passed as input.
-
-