Helios::Error::Warning - exception class for Helios job processing system; implies the job was


Helios documentation Contained in the Helios distribution.

Index


Code Index:

NAME

Top

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

SYNOPSIS

Top

	# 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);
	};

DESCRIPTION

Top

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.

SEE ALSO

Top

Helios::Error::FatalNoRetry, Helios::Error::Fatal, Error, Error::Simple

AUTHOR

Top

Andrew Johnson, <ajohnson@ittoolbox.com>

COPYRIGHT AND LICENSE

Top

WARRANTY

Top

This software comes with no warranty of any kind.


Helios documentation Contained in the Helios distribution.

package Helios::Error::Warning;

use base qw(Error::Simple);

our $VERSION = '1.20';

1;
__END__;