Class: Google::Cloud::Logging::AsyncWriteEntriesError
- Inherits:
-
Error
- Object
- Error
- Google::Cloud::Logging::AsyncWriteEntriesError
- Defined in:
- lib/google/cloud/logging/errors.rb
Overview
AsyncWriteEntriesError
Used to indicate a problem when AsyncWriter writes log entries to the API. This can occur when the API returns an error.
Instance Attribute Summary collapse
-
#count ⇒ Array<Google::Cloud::Logging::Entry>
readonly
objects that were not written to the API due to the error.
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
Instance Method Summary collapse
-
#initialize(message, entries = nil) ⇒ AsyncWriteEntriesError
constructor
A new instance of AsyncWriteEntriesError.
Constructor Details
#initialize(message, entries = nil) ⇒ AsyncWriteEntriesError
Returns a new instance of AsyncWriteEntriesError.
94 95 96 97 |
# File 'lib/google/cloud/logging/errors.rb', line 94 def initialize , entries = nil super @entries = entries if entries end |
Instance Attribute Details
#count ⇒ Array<Google::Cloud::Logging::Entry> (readonly)
objects that were not written to the API due to the error.
92 |
# File 'lib/google/cloud/logging/errors.rb', line 92 attr_reader :entries |
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
92 93 94 |
# File 'lib/google/cloud/logging/errors.rb', line 92 def entries @entries end |