Helios::Error::Warning - exception class for Helios job processing system; implies the job was successful but there was something that should be logged as an error
# in dodgy code: use Error qw(:try); sub dodgy { ... dodgy stuff ... if ($success_but_a_bit_off) { throw Helios::Error::Warning("This job succeeded with errors"); } } # in the caller of the dodgy code: use Error qw(:try); try { dodgy(@params); } catch Helios::Error::Warning with { my $e = shift; $self->logMsg( $e->text() ); $self->jobCompleted($job); };
Helios::Error::Warning can be used to identify errors that were not severe enough to cause a job to fail, but probably should be logged. Normally this would mean simply logging the error, and calling the $job->completed() method as normal.
Compare this to Helios::Error::Fatal and FatalNoRetry, which imply errors that caused the job to fail completely.
Helios::Error::FatalNoRetry, Helios::Error::Fatal, Error, Error::Simple
Andrew Johnson, <ajohnson@ittoolbox.com>
Copyright (C) 2007-8 by CEB Toolbox, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.0 or, at your option, any later version of Perl 5 you may have available.
This software comes with no warranty of any kind.
To install Helios, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Helios
CPAN shell
perl -MCPAN -e shell install Helios
For more information on module installation, please visit the detailed CPAN module installation guide.