protected Object handleError(Class type,Object value,Throwable cause){
  if (useDefault) {
    return handleMissing(type);
  }
  ConversionException cex=null;
  if (cause instanceof ConversionException) {
    cex=(ConversionException)cause;
  }
 else {
    String msg="Error converting from '" + toString(value.getClass()) + "' to '"+ toString(type)+ "' "+ cause.getMessage();
    cex=new ConversionException(msg,cause);
  }
  throw cex;
}

protected Object handleError ( Class type , Object value , Throwable cause ) { if ( useDefault ) { return handleMissing ( type ) ; } ConversionException cex = null ; if ( cause instanceof ConversionException ) { cex = ( ConversionException ) cause ; } else { String msg = "Error converting from '" + toString ( value . getClass ( ) ) + "' to '" + toString ( type ) + "' " + cause . getMessage ( ) ; cex = new ConversionException ( msg , cause ) ; } throw cex ; }
handle conversion errors . < p > if a default value has been specified then it is returned otherwise a conversionexception is thrown .
