{
    "content": [
        {
            "type": "text",
            "text": "# XML::SAX::Exception (perldoc)\n\n## NAME\n\nXML::SAX::Exception - Exception classes for XML::SAX\n\n## SYNOPSIS\n\nthrow XML::SAX::Exception::NotSupported(\nMessage => \"The foo feature is not supported\",\n);\n\n## DESCRIPTION\n\nThis module is the base class for all SAX Exceptions, those defined in the spec as well as those\nthat one may create for one's own SAX errors.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **CREATING NEW EXCEPTION CLASSES**\n- **THROWING EXCEPTIONS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "XML::SAX::Exception",
        "section": "",
        "mode": "perldoc",
        "summary": "XML::SAX::Exception - Exception classes for XML::SAX",
        "synopsis": "throw XML::SAX::Exception::NotSupported(\nMessage => \"The foo feature is not supported\",\n);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "CREATING NEW EXCEPTION CLASSES",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "THROWING EXCEPTIONS",
                "lines": 7,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "XML::SAX::Exception - Exception classes for XML::SAX\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "throw XML::SAX::Exception::NotSupported(\nMessage => \"The foo feature is not supported\",\n);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module is the base class for all SAX Exceptions, those defined in the spec as well as those\nthat one may create for one's own SAX errors.\n\nThere are three subclasses included, corresponding to those of the SAX spec:\n\nXML::SAX::Exception::NotSupported\nXML::SAX::Exception::NotRecognized\nXML::SAX::Exception::Parse\n\nUse them wherever you want, and as much as possible when you encounter such errors. SAX is meant\nto use exceptions as much as possible to flag problems.\n",
                "subsections": []
            },
            "CREATING NEW EXCEPTION CLASSES": {
                "content": "All you need to do to create a new exception class is:\n\n@XML::SAX::Exception::MyException::ISA = ('XML::SAX::Exception')\n\nThe given package doesn't need to exist, it'll behave correctly this way. If your exception\nrefines an existing exception class, then you may also inherit from that instead of from the\nbase class.\n",
                "subsections": []
            },
            "THROWING EXCEPTIONS": {
                "content": "This is as simple as exemplified in the SYNOPSIS. In fact, there's nothing more to know. All you\nhave to do is:\n\nthrow XML::SAX::Exception::MyException( Message => 'Something went wrong' );\n\nand voila, you've thrown an exception which can be caught in an eval block.\n",
                "subsections": []
            }
        }
    }
}