Class ExceptionCatcher

  • All Implemented Interfaces:
    Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally

    public class ExceptionCatcher
    extends BodyTagSupport
    implements TryCatchFinally
    This tag is a wrapper that catches any errors in it's body and outputs the error message.

    Example:

       <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
       <base:catch">
       Here is some code that may throw an exception...
       </base:catch>
    

    Syntax:

       <base:catch
          clazz=...
       >
    
    Tag attributes
    Attribute Default value Required Description
    clazz inlineerror no If an exception is thrown the error message will be displayed inside a <div> with class set to this value.
    Version:
    2.9.1
    Author:
    Nicklas
    See Also:
    Serialized Form