Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

CGI::Session::ErrorHandler

Name CGI::Session::ErrorHandler
Version 4.43
Located at /usr/local/share/perl5
File /usr/local/share/perl5/CGI/Session/ErrorHandler.pm
Is Core No
Search CPAN for this module CGI::Session::ErrorHandler
Documentation CGI::Session::ErrorHandler
Module Details CGI::Session::ErrorHandler


NAME

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


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 isn't 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 always 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.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024