Exception: Mongo::Error::BulkWriteError
- Inherits:
-
Mongo::Error
- Object
- StandardError
- Mongo::Error
- Mongo::Error::BulkWriteError
- Defined in:
- lib/mongo/error/bulk_write_error.rb
Overview
Exception raised if there are write errors upon executing the bulk operation.
Constant Summary
Constants inherited from Mongo::Error
BAD_VALUE, CODE, ERR, ERRMSG, ERROR, UNKNOWN_ERROR, WRITE_CONCERN_ERROR, WRITE_CONCERN_ERRORS, WRITE_ERRORS
Instance Attribute Summary collapse
-
#result ⇒ BSON::Document
readonly
Result The error result.
Instance Method Summary collapse
-
#initialize(result) ⇒ BulkWriteError
constructor
Instantiate the new exception.
Constructor Details
#initialize(result) ⇒ BulkWriteError
Instantiate the new exception.
36 37 38 |
# File 'lib/mongo/error/bulk_write_error.rb', line 36 def initialize(result) @result = result end |
Instance Attribute Details
#result ⇒ BSON::Document (readonly)
Returns result The error result.
25 26 27 |
# File 'lib/mongo/error/bulk_write_error.rb', line 25 def result @result end |