Examples of ConversionException


Examples of org.apache.commons.beanutils.ConversionException

            return sObjectRefValue;
        } catch (ClassCastException e) {
            if (useDefault) {
                return defaultValue;
            } else {
                throw new ConversionException(e);
            }
        }

    }
View Full Code Here

Examples of org.apache.commons.beanutils.ConversionException

            return (new Integer(value.toString()));
        } catch (Exception e) {
            if (useDefault) {
                return (defaultValue);
            } else {
                throw new ConversionException(e);
            }
        }
    }
View Full Code Here

Examples of org.apache.commons.beanutils.ConversionException

            return byteStream.toByteArray();
        } catch (Exception e) {
            if (useDefault) {
                return (defaultValue);
            } else {
                throw new ConversionException(e);
            }
        }
    }
View Full Code Here

Examples of org.apache.commons.beanutils.ConversionException

            return (new Double(value.toString()));
        } catch (Exception e) {
            if (useDefault) {
                return (defaultValue);
            } else {
                throw new ConversionException(e);
            }
        }

    }
View Full Code Here

Examples of org.apache.commons.beanutils.ConversionException

                    cbuf.rewind();
                    sb.append(cbuf);
                    cbuf.rewind();
                }
            } catch (IOException e) {
                throw new ConversionException("Error reading from clob", e);
            } catch (SQLException e) {
                throw new ConversionException("Error reading from clob", e);
            }
            value = sb.toString();
        }
        try {
            return cleanseString(value.toString());
        } catch (ClassCastException e) {
            if (useDefault) {
                return (defaultValue);
            } else {
                throw new ConversionException(e);
            }
        }

    }
View Full Code Here

Examples of org.apache.commons.beanutils.ConversionException

                    stringValue.equalsIgnoreCase("0")) {
                return (Boolean.FALSE);
            } else if (useDefault) {
                return (defaultValue);
            } else {
                throw new ConversionException(stringValue);
            }
        } catch (ClassCastException e) {
            if (useDefault) {
                return (defaultValue);
            } else {
                throw new ConversionException(e);
            }
        }

    }
View Full Code Here

Examples of org.apache.commons.configuration.ConversionException

    }
    else{
      return null;
    }
   
    throw new ConversionException(getBundle().getString("configuration-not-conversion",value,field.getDeclaringClass().getCanonicalName()));
  }
View Full Code Here

Examples of org.apache.commons.configuration.ex.ConversionException

        else if (InetAddress.class.isAssignableFrom(cls))
        {
            return toInetAddress(value);
        }

        throw new ConversionException("The value '" + value + "' (" + value.getClass() + ")"
                + " can't be converted to a " + cls.getName() + " object");
    }
View Full Code Here

Examples of org.apache.commons.configuration2.ex.ConversionException

        {
            return Collections.singletonList((Object) value.toString());
        }
        else
        {
            throw new ConversionException('\'' + key + "' doesn't map to a List object: " + value + ", a "
                    + value.getClass().getName());
        }
        return list;
    }
View Full Code Here

Examples of org.apache.ojb.broker.accesslayer.conversions.ConversionException

            {
                ret = new BigDecimal(((Long) source).doubleValue());
            }
            else
            {
                throw new ConversionException(
                        "java-->sql, expected type was"+Long.class.getClass()+
                        ", found type "+source.getClass());
            }
            return ret;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.