1CGI::Session::ErrorHandUlseerr(3C)ontributed Perl DocumeCnGtIa:t:iSoenssion::ErrorHandler(3)
2
3
4

NAME

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

SYNOPSIS

9           require CGI::Session::ErrorHandler
10           @ISA = qw( CGI::Session::ErrorHandler );
11
12           sub some_method {
13               my $self = shift;
14               unless (  $some_condition ) {
15                   return $self->set_error("some_method(): \$some_condition isn't met");
16               }
17           }
18

DESCRIPTION

20       CGI::Session::ErrorHandler provides set_error() and errstr() methods
21       for setting and accessing error messages from within CGI::Session's
22       components. This method should be used by driver developers for provid‐
23       ing CGI::Session-standard error handling routines for their code
24
25       METHODS
26
27       set_error($message)
28           Implicitly defines $pkg_name::errstr and sets its value to $mes‐
29           sage. Return value is always undef.
30
31       errstr()
32           Returns whatever value was set by the most recent call to
33           set_error(). If no message as has been set yet, the empty string is
34           returned so the message can still concatenate without a warning.
35

LICENSING

37       For support and licensing information see CGI::Session.
38
39
40
41perl v5.8.8                       2006-11-24     CGI::Session::ErrorHandler(3)
Impressum