1MongoDB::CommandResult(U3s)er Contributed Perl DocumentatMioonngoDB::CommandResult(3)
2
3
4
6 MongoDB::CommandResult - MongoDB generic command result document
7
9 version v2.0.3
10
12 This class encapsulates the results from a database command.
13 Currently, it is only available from the "result" attribute of
14 "MongoDB::DatabaseError".
15
17 output
18 Hash reference with the output document of a database command
19
20 address
21 Address ("host:port") of server that ran the command
22
24 last_code
25 Error code (if any) or 0 if there was no error.
26
27 last_errmsg
28 Error string (if any) or the empty string if there was no error.
29
30 last_wtimeout
31 True if a write concern error or timeout occurred or false otherwise.
32
33 last_error_labels
34 Returns an array of error labels from the command, or an empty array if
35 there are none
36
37 assert
38 Throws an exception if the command failed.
39
40 assert_no_write_concern_error
41 Throws an exception if a write concern error occurred
42
44 · David Golden <david@mongodb.com>
45
46 · Rassi <rassi@mongodb.com>
47
48 · Mike Friedman <friedo@friedo.com>
49
50 · Kristina Chodorow <k.chodorow@gmail.com>
51
52 · Florian Ragwitz <rafl@debian.org>
53
55 This software is Copyright (c) 2019 by MongoDB, Inc.
56
57 This is free software, licensed under:
58
59 The Apache License, Version 2.0, January 2004
60
61
62
63perl v5.28.1 2019-02-07 MongoDB::CommandResult(3)