{
    "mode": "perldoc",
    "parameter": "Test2::Event::Exception",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Test2%3A%3AEvent%3A%3AException/json",
    "generated": "2026-06-03T02:36:00Z",
    "synopsis": "use Test2::API qw/context/;\nuse Test2::Event::Exception;\nmy $ctx = context();\nmy $event = $ctx->sendevent('Exception', error => 'Stuff is broken');",
    "sections": {
        "NAME": {
            "content": "Test2::Event::Exception - Exception event\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "An exception event will display to STDERR, and will prevent the overall test file from passing.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Test2::API qw/context/;\nuse Test2::Event::Exception;\n\nmy $ctx = context();\nmy $event = $ctx->sendevent('Exception', error => 'Stuff is broken');\n",
            "subsections": []
        },
        "METHODS": {
            "content": "Inherits from Test2::Event. Also defines:\n\n$reason = $e->error\nThe reason for the exception.\n",
            "subsections": []
        },
        "CAVEATS": {
            "content": "Be aware that all exceptions are stringified during construction.\n",
            "subsections": []
        },
        "SOURCE": {
            "content": "The source code repository for Test2 can be found at http://github.com/Test-More/test-more/.\n",
            "subsections": []
        },
        "MAINTAINERS": {
            "content": "Chad Granum <exodist@cpan.org>\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Chad Granum <exodist@cpan.org>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright 2020 Chad Granum <exodist@cpan.org>.\n\nThis program is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n\nSee http://dev.perl.org/licenses/\n",
            "subsections": []
        }
    },
    "summary": "Test2::Event::Exception - Exception event",
    "flags": [],
    "examples": [],
    "see_also": []
}