GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  RESOURCEPOOL::COMMAND::EXCEPTION (3)

.ds Aq ’

NAME

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

CONTENTS

SYNOPSIS



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

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



CW$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.

CW$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.



Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 RESOURCEPOOL::COMMAND::EXCEPTION (3) 2009-11-25

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.