Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
ResourcePool::Command:UsereContributed PerlResourcePool::Command::Exception(3)

NAME
       ResourcePool::Command::Exception	- An Exception for ResourcePool
       commands.

SYNOPSIS
	eval {
	       $pool->execute($cmd);
	};

	if ($@)	{ # an exception happend
	       my $ex =	$@;
	       my $rootException = $ex->rootException();
	       my $nofailed = $ex->getExecutions();
	}

   $ex->rootException
       This method returns the exception which cause the execute to fail.

       If the execution	was started more then once (e.g. because of the
       MaxExecTry setting) this	method returns the exception which occurred
       during the last attempt.

   $ex->getExecutions
       This method returns the number of executions done before	the exception
       was propagated to the client.

       This is usually 1 for ResourcePool::Command::NoFailoverExceptions or
       equal to	MaxExecTry for other exceptions.

AUTHOR
	   Copyright (C) 2001-2009 by Markus Winand <mws@fatalmind.com>

	   This	program	is free	software; you can redistribute it and/or
	   modify it under the same terms as Perl itself.

perl v5.24.1			  2009-11-2ResourcePool::Command::Exception(3)

NAME | SYNOPSIS | AUTHOR

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=ResourcePool::Command::Exception&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help