NAME

PApp::Exception - exception handling for PApp

SYNOPSIS

use PApp::Exception;
# to be written

DESCRIPTION

# to be written

$errobj = new arg => value..

Create and return a new exception object. The object is overloaded, stringification will call as_string.

title      exception page title (default "PApp:Exception")
body       the exception page body
error      the error message
info       additional info (multi-line)
backtrace  optional backtrace info
$errobj->throw

Throw the exception.

$errobj->as_string

Return the full exception information as simple text string.

$errobj->as_html

Return the full exception information as a fully formatted html page.

fancydie $error, $additional_info

Aborts the current page and displays a fancy error box, complete with backtrace. $error should be a short error message, while $additional_info can be a multi-line description of the problem.

SEE ALSO

PApp.

AUTHOR

Marc Lehmann <pcg@goof.com>
http://www.goof.com/pcg/marc/