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  -  CGI::SESSION::ERRORHANDLER (3)

.ds Aq ’

NAME

CGI::Session::ErrorHandler - error handling routines for CGI::Session

CONTENTS

SYNOPSIS



    require CGI::Session::ErrorHandler;
    @ISA = qw( CGI::Session::ErrorHandler );

    sub some_method {
        my $self = shift;
        unless (  $some_condition ) {
            return $self->set_error("some_method(): \$some_condition isnt met");
        }
    }



DESCRIPTION

CGI::Session::ErrorHandler provides set_error() and errstr() methods for setting and accessing error messages from within CGI::Session’s components. This method should be used by driver developers for providing CGI::Session-standard error handling routines for their code

    METHODS

set_error($message) Implicitly defines $pkg_name::errstr and sets its value to $message. Return value is <B>alwaysB> undef.
errstr() Returns whatever value was set by the most recent call to set_error(). If no message as has been set yet, the empty string is returned so the message can still concatenate without a warning.

LICENSING

For support and licensing information see CGI::Session.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CGI::SESSION::ERRORHANDLER (3) 2011-07-11

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