{
    "content": [
        {
            "type": "text",
            "text": "# Net::Twitter::Role::WrapError (perldoc)\n\n## NAME\n\nNet::Twitter::Role::WrapError - Wraps Net::Twitter exceptions\n\n## SYNOPSIS\n\nuse Net::Twitter;\nmy $nt = Net::Twitter->new(username => $username, password => $password);\nmy $followers = $nt->followers;\nif ( !followers ) {\nwarn $nt->httpmessage;\n}\n\n## DESCRIPTION\n\nThis module provides an alternate error handling strategy for \"Net::Twitter\". Rather than\nthrowing exceptions, API methods return \"undef\" and error information is available through\nmethod calls on the \"Net::Twitter\" object.\n\n## Sections\n\n- **NAME**\n- **VERSION**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n- **SEE ALSO**\n- **AUTHOR**\n- **LICENSE**\n- **DISCLAIMER OF WARRANTY**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Net::Twitter::Role::WrapError",
        "section": "",
        "mode": "perldoc",
        "summary": "Net::Twitter::Role::WrapError - Wraps Net::Twitter exceptions",
        "synopsis": "use Net::Twitter;\nmy $nt = Net::Twitter->new(username => $username, password => $password);\nmy $followers = $nt->followers;\nif ( !followers ) {\nwarn $nt->httpmessage;\n}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 16,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "LICENSE",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "DISCLAIMER OF WARRANTY",
                "lines": 16,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Net::Twitter::Role::WrapError - Wraps Net::Twitter exceptions\n",
                "subsections": []
            },
            "VERSION": {
                "content": "version 4.01043\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Net::Twitter;\n\nmy $nt = Net::Twitter->new(username => $username, password => $password);\n\nmy $followers = $nt->followers;\nif ( !followers ) {\nwarn $nt->httpmessage;\n}\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module provides an alternate error handling strategy for \"Net::Twitter\". Rather than\nthrowing exceptions, API methods return \"undef\" and error information is available through\nmethod calls on the \"Net::Twitter\" object.\n\nThis is the error handling strategy used when \"trait\" \"Legacy\" is used. It was the error\nhandling strategy employed by \"Net::Twitter\" prior to version 3.00.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "new This method takes the same parameters as \"new\" in Net::Twitter.\n\ngeterror\nReturns undef if there was no error or a HASH ref containing the Twitter error response.\nOccasionally, a Twitter API call results in an error with no error content returned from\nTwitter. When that occurs, geterror returns a simulated error HASH ref.\n\nNOTE: Versions of \"Net::Twitter\" prior to 3.0 sometimes returned a string rather than a HASH\nref, on error. This was a bug. Always expect undef on success and a HASH ref on error.\n\nhttpcode\nReturns the HTTP response code the most recent API method call if it ended in error.\n\nhttpmessage\nReturns the HTTP message for the most recent API method call if it ended in error.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "Net::Twitter\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Marc Mims <marc@questright.com>\n",
                "subsections": []
            },
            "LICENSE": {
                "content": "Copyright (c) 2016 Marc Mims\n\nThis library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
                "subsections": []
            },
            "DISCLAIMER OF WARRANTY": {
                "content": "BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE\nEXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER\nEXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE\nSOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY\nSERVICING, REPAIR, OR CORRECTION.\n\nIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER,\nOR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE\nLICENSE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR\nCONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT\nLIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR\nOTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n",
                "subsections": []
            }
        }
    }
}