Package org.scf4j

Examples of org.scf4j.ConfigurationException


      if (to.equals(Date.class)) {
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
        try {
          return to.cast(format.parse(value));
        } catch (ParseException e) {
          throw new ConfigurationException(value + " is not a valid Date, format should be YYYY-MM-DD.");
        }
      }
      return chained.coerce(value, to);
    }
View Full Code Here

TOP

Related Classes of org.scf4j.ConfigurationException

Copyright © 2018 www.massapicom. 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.