NAME
XAS::Lib::Mixin::Handlers - A mixin to provide exception handlers.
SYNOPSIS
use XAS::Class
version => '0.01',
base => 'XAS::Base',
mixin => 'XAS::Lib::Mixin::Handlers'
;
DESCRIPTION
This module provides exception handlers. It is implemented as a mixin.
METHODS
error_handler($ex)
This method will write an 'error' entry to the current log. It takes these parameters:
exception_hander($ex)
The method will write an 'error' entry to the current log and send an alert. It takes these parameters:
exit_handler($ex)
The method will write an 'fatal' entry to the current log, send an alert and return an exit code. It takes these parameters:
SEE ALSO
AUTHOR
Kevin L. Esteb, <kevin@kesteb.us>
COPYRIGHT AND LICENSE
Copyright (C) 2014 Kevin L. Esteb
This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.