1MongoDB::CommandResult(U3s)er Contributed Perl DocumentatMioonngoDB::CommandResult(3)
2
3
4
6 MongoDB::CommandResult - MongoDB generic command result document
7
9 version v2.2.1
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
23 session
24 ClientSession which the command was ran with, if any
25
27 last_code
28 Error code (if any) or 0 if there was no error.
29
30 last_errmsg
31 Error string (if any) or the empty string if there was no error.
32
33 last_wtimeout
34 True if a write concern error or timeout occurred or false otherwise.
35
36 last_error_labels
37 Returns an array of error labels from the command, or an empty array if
38 there are none
39
40 assert
41 Throws an exception if the command failed.
42
43 assert_no_write_concern_error
44 Throws an exception if a write concern error occurred
45
47 · David Golden <david@mongodb.com>
48
49 · Rassi <rassi@mongodb.com>
50
51 · Mike Friedman <friedo@friedo.com>
52
53 · Kristina Chodorow <k.chodorow@gmail.com>
54
55 · Florian Ragwitz <rafl@debian.org>
56
58 This software is Copyright (c) 2019 by MongoDB, Inc.
59
60 This is free software, licensed under:
61
62 The Apache License, Version 2.0, January 2004
63
64
65
66perl v5.30.1 2019-12-13 MongoDB::CommandResult(3)