static String msgFromToString(Throwable e){
  String msg=e.toString();
  int idx=msg.indexOf(':');
  if (idx >= 0 && idx < msg.length() - 1) {
    return msg.substring(idx + 1);
  }
 else {
    return msg;
  }
}

static String msgFromToString ( Throwable e ) { String msg = e . toString ( ) ; int idx = msg . indexOf ( ':' ) ; if ( idx >= 0 && idx < msg . length ( ) - 1 ) { return msg . substring ( idx + 1 ) ; } else { return msg ; } }
the innerthrowable seems to not implement getmessage ( ) properly . so we extract the message from the exception ' s tostring ( ) method .
