{
    "content": [
        {
            "type": "text",
            "text": "# Test::Unit::Assertion::Exception (perldoc)\n\n## NAME\n\nTest::Unit::Assertion::Exception - A assertion for raised exceptions\n\n## SYNOPSIS\n\nrequire Test::Unit::Assertion::Exception;\nmy $assertraised =\nTest::Unit::Assertion::Exception->new('MyException');\n# This should succeed\n$asserteq->doassertion(sub { MyException->throw() });\n# This should fail\n$asserteq->doassertion(sub { });\n\n## DESCRIPTION\n\nAlthough the SYNOPSIS shows how you'd use Test::Unit::Assertion::Exception directly, it is more\nsensibly used indirectly via \"Test::Unit::Test::assertraises()\", which instantiates a\n\"Test::Unit::Assertion::Exception\".\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **AUTHOR**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Test::Unit::Assertion::Exception",
        "section": "",
        "mode": "perldoc",
        "summary": "Test::Unit::Assertion::Exception - A assertion for raised exceptions",
        "synopsis": "require Test::Unit::Assertion::Exception;\nmy $assertraised =\nTest::Unit::Assertion::Exception->new('MyException');\n# This should succeed\n$asserteq->doassertion(sub { MyException->throw() });\n# This should fail\n$asserteq->doassertion(sub { });",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 4,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Test::Unit::Assertion::Exception - A assertion for raised exceptions\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "require Test::Unit::Assertion::Exception;\n\nmy $assertraised =\nTest::Unit::Assertion::Exception->new('MyException');\n\n# This should succeed\n$asserteq->doassertion(sub { MyException->throw() });\n\n# This should fail\n$asserteq->doassertion(sub { });\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Although the SYNOPSIS shows how you'd use Test::Unit::Assertion::Exception directly, it is more\nsensibly used indirectly via \"Test::Unit::Test::assertraises()\", which instantiates a\n\"Test::Unit::Assertion::Exception\".\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Copyright (c) 2001 Piers Cawley <pdcawley@iterative-software.com>.\n\nAll rights reserved. This program is free software; you can redistribute it and/or modify it\nunder the same terms as Perl itself.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "*   Test::Unit::TestCase\n\n*   Test::Unit::Assertion\n",
                "subsections": []
            }
        }
    }
}