{
    "content": [
        {
            "type": "text",
            "text": "# CGI::Session::ErrorHandler (perldoc)\n\n## NAME\n\nCGI::Session::ErrorHandler - error handling routines for CGI::Session\n\n## SYNOPSIS\n\nrequire CGI::Session::ErrorHandler;\n@ISA = qw( CGI::Session::ErrorHandler );\nsub somemethod {\nmy $self = shift;\nunless (  $somecondition ) {\nreturn $self->seterror(\"somemethod(): \\$somecondition isn't met\");\n}\n}\n\n## DESCRIPTION\n\nCGI::Session::ErrorHandler provides seterror() and errstr() methods for setting and accessing\nerror messages from within CGI::Session's components. This method should be used by driver\ndevelopers for providing CGI::Session-standard error handling routines for their code\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (2 subsections)\n- **LICENSING**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "CGI::Session::ErrorHandler",
        "section": "",
        "mode": "perldoc",
        "summary": "CGI::Session::ErrorHandler - error handling routines for CGI::Session",
        "synopsis": "require CGI::Session::ErrorHandler;\n@ISA = qw( CGI::Session::ErrorHandler );\nsub somemethod {\nmy $self = shift;\nunless (  $somecondition ) {\nreturn $self->seterror(\"somemethod(): \\$somecondition isn't met\");\n}\n}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": [
                    {
                        "name": "set_error",
                        "lines": 3
                    },
                    {
                        "name": "errstr",
                        "lines": 4
                    }
                ]
            },
            {
                "name": "LICENSING",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "CGI::Session::ErrorHandler - error handling routines for CGI::Session\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "require CGI::Session::ErrorHandler;\n@ISA = qw( CGI::Session::ErrorHandler );\n\nsub somemethod {\nmy $self = shift;\nunless (  $somecondition ) {\nreturn $self->seterror(\"somemethod(): \\$somecondition isn't met\");\n}\n}\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "CGI::Session::ErrorHandler provides seterror() and errstr() methods for setting and accessing\nerror messages from within CGI::Session's components. This method should be used by driver\ndevelopers for providing CGI::Session-standard error handling routines for their code\n\nMETHODS",
                "subsections": [
                    {
                        "name": "set_error",
                        "content": "Implicitly defines $pkgname::errstr and sets its value to $message. Return value is always\nundef.\n"
                    },
                    {
                        "name": "errstr",
                        "content": "Returns whatever value was set by the most recent call to seterror(). If no message as has\nbeen set yet, the empty string is returned so the message can still concatenate without a\nwarning.\n"
                    }
                ]
            },
            "LICENSING": {
                "content": "For support and licensing information see CGI::Session.\n",
                "subsections": []
            }
        }
    }
}