public void testConstrStringException(){
  String a="-238768.787678287a+10";
  try {
    BigDecimal bd=new BigDecimal(a);
    fail("NumberFormatException has not been caught: " + bd.toString());
  }
 catch (  NumberFormatException e) {
  }
}

public void testConstrStringException ( ) { String a = "-238768.787678287a+10" ; try { BigDecimal bd = new BigDecimal ( a ) ; fail ( "NumberFormatException has not been caught: " + bd . toString ( ) ) ; } catch ( NumberFormatException e ) { } }
new bigdecimal ( string value ) when value is not a valid representation of bigdecimal .
