In 4.2.0 and earlier versions, the exception message from
Amount.valueOf(CharSequence) with an invalid unit string, contained information
related to what failed in the parsing.
For example Amount.valueOf( "10.0 notaunit" ) would have resulted in an
exception with the following message.
"notaunit not recognized (in 10.0 notaunit at index 5)"
In 4.3.1, and I presume 4.3.0, however it is:
Looking at the source of AmountFormat.java, the ParseException is being
"captured" in AmountFormat.PlusMinusError.parse(CharSequence,Cursor). In
pre-4.3.x it was allowed to "escape" the parse method.
I will attach a simple program with the call shown above.