javax.servlet.jsp

Class JspException

Implemented Interfaces:
Serializable
Known Direct Subclasses:
JspTagException, SkipPageException

public class JspException
extends Exception

A generic JSP exception.
See Also:
Serialized Form

Constructor Summary

JspException()
Create a JspException
JspException(String msg)
Create a JspException with a message.
JspException(String msg, Throwable rootCause)
Create a JspException with a message and a root cause.
JspException(Throwable rootCause)
Create a JspException with a root cause.

Method Summary

Throwable
getRootCause()
Returns the root cause of the exception.

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

JspException

public JspException()
Create a JspException
Usages and Demos :

View More Examples of JspException()
   1:         } catch (IOException e) {
   2:             throw new JspException();
   3:         }
   4:     }

View Full Code Here
   1:         } catch (IOException e) {
   2:             throw new JspException();
   3:         }
   4:     }

View Full Code Here
   1:         } catch (IOException e) {
   2:             throw new JspException();
   3:         }
   4:     }

View Full Code Here
   1:         } catch (IOException e) {
   2:             throw new JspException();
   3:         }
   4:         return EVAL_PAGE;
   5:     }

View Full Code Here
   1:         } catch (IOException e) {
   2:             throw new JspException();
   3:         }
   4:         return EVAL_PAGE;
   5:     }

View Full Code Here

JspException

public JspException(String msg)
Create a JspException with a message.
Usages and Demos :

View More Examples of JspException(String msg)
   1:         if (node == null) {
   2:             throw new JspException("INodeBean '" + getNode()
   3:                     + "' not found in any scope");
   4:         ...
   5:         } catch (Exception e) {
   6:             throw new JspException(e);
   7:         }
   8:         return SKIP_BODY;
   9:     }

View Full Code Here
   1:             } else {
   2:                 throw new JspException("Component " + component.getId() +
   3:                                        " is no ProjectProgress");
   4:             }
   5:         }

View Full Code Here
   1:         {
   2:             throw new JspException("Component " + component.getId() + " is no HtmlTreeEx");
   3:         }
   4: 
   5:         return Tag.SKIP_BODY;

View Full Code Here
   1:         {
   2:             throw new JspException("Component " + component.getId() + " is no HtmlTree");
   3:         }
   4: 
   5:         return Tag.SKIP_BODY;

View Full Code Here
   1:             {
   2:                 throw new JspException("Component " + component.getId() + " is no ActionSource");
   3:             }
   4:         }

View Full Code Here

JspException

public JspException(String msg,
                    Throwable rootCause)
Create a JspException with a message and a root cause.
Parameters:
msg - the exception message
rootCause - the underlying exception.
Since:
JSP 1.2
Usages and Demos :

View More Examples of JspException(String msg,Throwable rootCause)
   1:                         } catch( IllegalArgumentException _e ) {
   2:                                 JspException e = new JspException(messages.getMessage("write.format", formatString));
   3:                                 RequestUtils.saveException(pageContext, e);
   4:                                 throw e;
   5:                         }

View Full Code Here
   1:     catch (IOException e) {
   2:         throw new JspException(messages.getMessage("common.io", e.toString()));
   3:     }
   4:     return EVAL_BODY_INCLUDE;
   5:   }

View Full Code Here
   1:                                  PageContext.REQUEST_SCOPE);
   2:         throw new JspException(messages.getMessage("common.io", e.toString()));
   3:     }
   4:     return EVAL_BODY_INCLUDE;
   5:   }

View Full Code Here
   1:         if(obj == null)
   2:             throw new JspException(messages.getMessage("getter.bean", s));
   3:         try
   4:         {
   5:             return BeanUtils.getProperty(obj, s1);

View Full Code Here
   1:             log.error("java.io.IOException: " + IOe);
   2:             throw new JspException("java.io.IOException", IOe);
   3:         }
   4:         return SKIP_BODY;
   5:     }

View Full Code Here

JspException

public JspException(Throwable rootCause)
Create a JspException with a root cause.
Parameters:
rootCause - the underlying exception.
Since:
JSP 1.2
Usages and Demos :

View More Examples of JspException(Throwable rootCause)
   1:         if (node == null) {
   2:             throw new JspException("INodeBean '" + getNode()
   3:                     + "' not found in any scope");
   4:         ...
   5:         } catch (Exception e) {
   6:             throw new JspException(e);
   7:         }
   8:         return SKIP_BODY;
   9:     }

View Full Code Here
   1:             } else {
   2:                 throw new JspException("Component " + component.getId() +
   3:                                        " is no ProjectProgress");
   4:             }
   5:         }

View Full Code Here
   1:         {
   2:             throw new JspException("Component " + component.getId() + " is no HtmlTreeEx");
   3:         }
   4: 
   5:         return Tag.SKIP_BODY;

View Full Code Here
   1:         {
   2:             throw new JspException("Component " + component.getId() + " is no HtmlTree");
   3:         }
   4: 
   5:         return Tag.SKIP_BODY;

View Full Code Here
   1:             {
   2:                 throw new JspException("Component " + component.getId() + " is no ActionSource");
   3:             }
   4:         }

View Full Code Here

Method Details

getRootCause

public Throwable getRootCause()
Returns the root cause of the exception.
Since:
JSP 1.2