{
    "mode": "perldoc",
    "parameter": "MongoDB::CommandResult",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/MongoDB%3A%3ACommandResult/json",
    "generated": "2026-07-05T13:44:02Z",
    "sections": {
        "NAME": {
            "content": "MongoDB::CommandResult - MongoDB generic command result document\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version v2.2.2\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This class encapsulates the results from a database command. Currently, it is only available\nfrom the \"result\" attribute of \"MongoDB::DatabaseError\".\n",
            "subsections": []
        },
        "ATTRIBUTES": {
            "content": "output\nHash reference with the output document of a database command\n\naddress\nAddress (\"host:port\") of server that ran the command\n\nsession\nClientSession which the command was ran with, if any\n",
            "subsections": []
        },
        "METHODS": {
            "content": "lastcode\nError code (if any) or 0 if there was no error.\n\nlasterrmsg\nError string (if any) or the empty string if there was no error.\n\nlastwtimeout\nTrue if a write concern error or timeout occurred or false otherwise.\n\nlasterrorlabels\nReturns an array of error labels from the command, or an empty array if there are none\n\nassert\nThrows an exception if the command failed.\n\nassertnowriteconcernerror\nThrows an exception if a write concern error occurred\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "*   David Golden <david@mongodb.com>\n\n*   Rassi <rassi@mongodb.com>\n\n*   Mike Friedman <friedo@friedo.com>\n\n*   Kristina Chodorow <k.chodorow@gmail.com>\n\n*   Florian Ragwitz <rafl@debian.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is Copyright (c) 2020 by MongoDB, Inc.\n\nThis is free software, licensed under:\n\nThe Apache License, Version 2.0, January 2004\n",
            "subsections": []
        }
    },
    "summary": "MongoDB::CommandResult - MongoDB generic command result document",
    "flags": [],
    "examples": [],
    "see_also": []
}