Exception: Google::Cloud::Firestore::BulkWriterException
- Inherits:
-
StandardError
- Object
- StandardError
- Google::Cloud::Firestore::BulkWriterException
- Defined in:
- lib/google/cloud/firestore/bulk_writer_exception.rb
Overview
BulkWriterException
A BulkWriterException object refers to the error that will be thrown in case a BulkWriterOperation fails in all the attempts.
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status) ⇒ BulkWriterException
constructor
A new instance of BulkWriterException.
Constructor Details
#initialize(status) ⇒ BulkWriterException
Returns a new instance of BulkWriterException.
30 31 32 33 34 35 36 |
# File 'lib/google/cloud/firestore/bulk_writer_exception.rb', line 30 def initialize status @status = status.code @message = status. @details = status.details super status. end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
28 29 30 |
# File 'lib/google/cloud/firestore/bulk_writer_exception.rb', line 28 def details @details end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
27 28 29 |
# File 'lib/google/cloud/firestore/bulk_writer_exception.rb', line 27 def @message end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
26 27 28 |
# File 'lib/google/cloud/firestore/bulk_writer_exception.rb', line 26 def status @status end |