View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Matt Sergeant > AxKit2-1.1 > error_xml


Annotate this POD


New  2
Open  0
View/Report Bugs


error_xml - Convert 500 errors to XML and process through XSLT


  Plugin error_xml
  ErrorStylesheet /path/to/error.xsl
  # optional
  StackTrace On


This plugin turns AxKit exceptions into XML structures to be transformed via XSLT and output to the browser. Simply specify an error.xsl to transform with, or use the one provided with AxKit (in demo/error.xsl).

If you wish to include a full stack trace, add the config as listed below.

Note: This plugin does add some overhead so it is suggested to only use it in development.


The error XML is in the following format:

  <?xml version="1.0"?>
    <msg>Can't locate object method "foobar" via package 
      "AxKit2::Plugin::foosle" at ./plugins/foosle line 37.
      <bt level="0">
      <bt level="1">


ErrorStylesheet STRING

An XSLT stylesheet to use for transforming the error XML to HTML.

StackTrace ( On | Off | 1 | 0 | Yes | No )

Takes a boolean value (to the extreme!) to determine whether to include a stack trace in the output or not.

StackTraceLog ( On | Off | 1 | 0 | Yes | No )

Takes a boolean value to determine whether to output the stack trace to the log as well as the browser.

syntax highlighting: