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
23       providing CGI::Session-standard error handling routines for their code
24
25   METHODS
26       set_error($message)
27           Implicitly defines $pkg_name::errstr and sets its value to
28           $message. Return value is always undef.
29
30       errstr()
31           Returns whatever value was set by the most recent call to
32           set_error(). If no message as has been set yet, the empty string is
33           returned so the message can still concatenate without a warning.
34

LICENSING

36       For support and licensing information see CGI::Session.
37
38
39
40perl v5.38.0                      2023-07-20     CGI::Session::ErrorHandler(3)
Impressum