{
    "mode": "perldoc",
    "parameter": "Moose::Exception",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Moose%3A%3AException/json",
    "generated": "2026-06-16T10:45:38Z",
    "sections": {
        "NAME": {
            "content": "Moose::Exception - Superclass for Moose internal exceptions\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 2.2200\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This class contains attributes which are common to all Moose internal exception classes.\n",
            "subsections": []
        },
        "WARNING WARNING WARNING": {
            "content": "If you're writing your own exception classes, you should instead prefer the Throwable role or\nthe Throwable::Error superclass - this is effectively a cut-down internal fork of the latter,\nand not designed for use in user code.\n\nOf course if you're writing metaclass traits, it would then make sense to subclass the relevant\nMoose exceptions - but only then.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "$exception->message\nThis attribute contains the exception message.\n\nEvery subclass of Moose::Exception is expected to override \"buildmessage\" method in order to\nconstruct this value.\n\n$exception->trace\nThis attribute contains the stack trace for the given exception. It returns a Devel::StackTrace\nobject.\n\n$exception->asstring\nThis method returns a stringified form of the exception, including a stack trace. By default,\nthis method skips Moose-internal stack frames until it sees a caller outside of the Moose core.\nIf the \"MOOSEFULLEXCEPTION\" environment variable is true, these frames are included.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "*   Moose::Manual::Exceptions\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "*   Stevan Little <stevan@cpan.org>\n\n*   Dave Rolsky <autarch@urth.org>\n\n*   Jesse Luehrs <doy@cpan.org>\n\n*   Shawn M Moore <sartak@cpan.org>\n\n*   יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>\n\n*   Karen Etheridge <ether@cpan.org>\n\n*   Florian Ragwitz <rafl@debian.org>\n\n*   Hans Dieter Pearcey <hdp@cpan.org>\n\n*   Chris Prather <chris@prather.org>\n\n*   Matt S Trout <mstrout@cpan.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is copyright (c) 2006 by Infinity Interactive, Inc.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n",
            "subsections": []
        }
    },
    "summary": "Moose::Exception - Superclass for Moose internal exceptions",
    "flags": [],
    "examples": [],
    "see_also": []
}