Examples of ChainedException


Examples of org.apache.commons.scaffold.lang.ChainedException

    public Map describe() throws Exception {

        try {
            return PropertyUtils.describe(this);
        } catch (Throwable t) {
            throw new ChainedException(t);
      }

    } // end describe
View Full Code Here

Examples of org.apache.commons.scaffold.lang.ChainedException

    public void set(Object o) throws Exception {

        try {
            BeanUtils.copyProperties(this,o);
        } catch (Throwable t) {
            throw new ChainedException(t);
      }

    } // end set
View Full Code Here

Examples of org.apache.commons.scaffold.lang.ChainedException

    public void populate(Object o) throws Exception {

        try {
            BeanUtils.copyProperties(o,describe());
        } catch (Throwable t) {
            throw new ChainedException(t);
      }

    } // end populate
View Full Code Here

Examples of org.apache.commons.scaffold.lang.ChainedException

    public Map describe() throws Exception {

        try {
            return PropertyUtils.describe(this);
        } catch (Throwable t) {
            throw new ChainedException(t);
      }

    } // end describe
View Full Code Here

Examples of org.apache.commons.scaffold.lang.ChainedException

    public void set(Object o) throws Exception {

        try {
            BeanUtils.copyProperties(this,o);
        } catch (Throwable t) {
            throw new ChainedException(t);
      }

    } // end set
View Full Code Here

Examples of org.apache.commons.scaffold.lang.ChainedException

    public void populate(Object o) throws Exception {

        try {
            BeanUtils.copyProperties(o,describe());
        } catch (Throwable t) {
            throw new ChainedException(t);
      }

    } // end populate
View Full Code Here

Examples of org.apache.scaffold.lang.ChainedException

                    HttpServletResponse response,
                    ActionErrors errors,
                    Exception exception) {

            // Cast as our subclass base type
        ChainedException e = (ChainedException) exception;

            // Log and print to error console
        servlet.log("Action Exception: ", e );
        e.printStackTrace();

            // General error message
        errors.add(ActionErrors.GLOBAL_ERROR,
            new ActionError("error.general"));

            // Generate error messages from exceptions
        errors.add(ActionErrors.GLOBAL_ERROR,
            new ActionError("error.detail",e.getMessage()));
        if (e.isCause()) {
            errors.add(ActionErrors.GLOBAL_ERROR,
                new ActionError("error.detail",e.getCauseMessage()));
        }
    }
View Full Code Here

Examples of org.apache.scaffold.lang.ChainedException

     */
    public Map describe() throws Exception {
        try {
            return BeanUtils.describe(this);
        } catch (Throwable t) {
            throw new ChainedException(t);
      }
    }
View Full Code Here

Examples of org.apache.scaffold.lang.ChainedException

     */
    public void set(Object o) throws Exception {
        try {
            BeanUtils.populate(this,BeanUtils.describe(o));
        } catch (Throwable t) {
            throw new ChainedException(t);
      }
    }
View Full Code Here

Examples of org.apache.scaffold.lang.ChainedException

     */
    public void populate(Object o) throws Exception {
        try {
            BeanUtils.populate(o,describe());
        } catch (Throwable t) {
            throw new ChainedException(t);
      }
    }
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.