Helios::Error::FatalNoRetry - fatal exception class for Helios job processing system; implies


Helios documentation Contained in the Helios distribution.

Index


Code Index:

NAME

Top

Helios::Error::FatalNoRetry - fatal exception class for Helios job processing system; implies a job failed and the error was so serious the job should not be reattempted.

SYNOPSIS

Top

	# in dodgy code:

	use Error qw(:try);

	sub dodgy {

		if ($something_bad) {
			throw Helios::Error::Fatal("Ah! Thats not gone well at all!");
		}
	}




	# in the caller of the dodgy code:

	use Error qw(:try);

	try {
		dodgy(@params);
	} catch Helios::Error::FatalNoRetry with {
		my $e = shift;
		$self->logMsg( $e->text() );
		$self->failedJob( $job, $e->text() );
	};

DESCRIPTION

Top

Helios::Error::FatalNoRetry can be used to identify errors that cause a job not only to fail but to not be re-attempted by the job processing system. This implies an error that should be logged and the Schwartz job in question should be marked as permanently failed (with the Helios::Worker->failedJobPermanent() method).

Compare this to Helios::Error::Fatal, which implies a similar circumstance except the error isn't severe enough to prevent the system from re-attempting later.

SEE ALSO

Top

Helios::Error::Fatal, Helios::Error::Warning, 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::FatalNoRetry;

use base qw(Error::Simple);

our $VERSION = '1.20';

1;
__END__;