XAS::Lib::Mixin::Handlers - A mixin to provide exception handlers.
use XAS::Class version => '0.01', base => 'XAS::Base', mixin => 'XAS::Lib::Mixin::Handlers' ;
This module provides exception handlers. It is implemented as a mixin.
This method will write an 'error' entry to the current log. It takes these parameters:
The exception to handle.
The method will write an 'error' entry to the current log and send an alert. It takes these parameters:
The method will write an 'fatal' entry to the current log, send an alert and return an exit code. It takes these parameters:
Kevin L. Esteb, <kevin@kesteb.us>
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.
To install XAS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XAS
CPAN shell
perl -MCPAN -e shell install XAS
For more information on module installation, please visit the detailed CPAN module installation guide.