AxKit::XSP::Exception - Exceptions taglib for eXtensible Server Pages


AxKit-XSP-Exception documentation  | view source Contained in the AxKit-XSP-Exception distribution.

Index


NAME

Top

AxKit::XSP::Exception - Exceptions taglib for eXtensible Server Pages

SYNOPSIS

Top

Add the sendmail: namespace to your XSP <xsp:page> tag:

    <xsp:page
         language="Perl"
         xmlns:xsp="http://apache.org/xsp/core/v1"
         xmlns:except="http://axkit.org/NS/xsp/exception/v1"
    >

And add this taglib to AxKit (via httpd.conf or .htaccess):

    AxAddXSPTaglib AxKit::XSP::Exception

DESCRIPTION

Top

Allows you to catch exceptions thrown by either your own code, or other taglibs.

EXAMPLE

Top

This example shows all the tags in action:

  <except:try>
   <mail:send-mail>...</mail:send-mail>
   <except:catch class="Some::Exception::Class">
           <!-- Handle this error differently. -->
   </except:catch>
   <except:catch>
           <!-- all uncaught errors get caught here -->
    <p>An Error occured: <except:message/></p>
   </except:catch>
  </except:try>

AUTHOR

Top

Matt Sergeant, matt@axkit.com

COPYRIGHT

Top

SEE ALSO

Top

AxKit


AxKit-XSP-Exception documentation  | view source Contained in the AxKit-XSP-Exception distribution.