info > CGI::Session::ErrorHandler

📖 NAME

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

🚀 Quick Reference

Use CaseCommandDescription
🔧 Set error message$self->set_error("message")Sets an error message in the module's namespace; always returns undef
🔍 Retrieve error messageCGI::Session::ErrorHandler->errstr() or $self->errstr()Returns the last error message set by set_error(), or empty string if none
🧩 Integrate into your driver@ISA = qw( CGI::Session::ErrorHandler ); Inherit this module to get standard error handling in your CGI::Session driver

📋 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

📄 LICENSING

For support and licensing information see CGI::Session.


perl v5.22.1 — 2016-01-15 — CGI::Session::ErrorHandler(3pm)

CGI::Session::ErrorHandler
📖 NAME 🚀 Quick Reference 📋 SYNOPSIS 📝 DESCRIPTION
🔧 METHODS
📄 LICENSING

Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-16 09:05 @2600:1f28:365:80b0:7cb9:fb:26c1:e368
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!