Difference: CGISessionErrorHandlerDotPm (1 vs. 2)

Revision 22013-02-16 - TWikiContributor

Line: 7 to 7
  =head1 SYNOPSIS
Changed:
<
<
require CGI::Session::ErrorHandler
>
>
require CGI::Session::ErrorHandler;
  @ISA = qw( CGI::Session::ErrorHandler );

sub some_method {

Revision 12008-01-22 - TWikiContributor

Line: 1 to 1
Added:
>
>

Package ==

=head1 NAME

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

=head1 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"); } }

=head1 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

=head2 METHODS

=over 4

=item set_error($message)

Implicitly defines $pkg_name::errstr and sets its value to $message. Return value is B undef.

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.CGISessionErrorHandlerDotPm.