Exception: Google::Cloud::Firestore::BulkWriterException

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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.message
  @details = status.details

  super status.message
end

Instance Attribute Details

#detailsObject (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

#messageObject (readonly)

Returns the value of attribute message.



27
28
29
# File 'lib/google/cloud/firestore/bulk_writer_exception.rb', line 27

def message
  @message
end

#statusObject (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