Package org.apache.scaffold.lang

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


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

     */
    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

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

TOP

Related Classes of org.apache.scaffold.lang.ChainedException

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.