Class: Google::Cloud::Logging::AsyncWriterError
- Inherits:
-
Error
- Object
- Error
- Google::Cloud::Logging::AsyncWriterError
- Defined in:
- lib/google/cloud/logging/errors.rb
Overview
AsyncWriterError
Used to indicate a problem preventing AsyncWriter from asynchronously calling the API. This can occur when the AsyncWriter has too few resources allocated for the amount of usage.
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) ⇒ AsyncWriterError
constructor
A new instance of AsyncWriterError.
Constructor Details
#initialize(message, entries = nil) ⇒ AsyncWriterError
Returns a new instance of AsyncWriterError.
55 56 57 58 |
# File 'lib/google/cloud/logging/errors.rb', line 55 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.
53 |
# File 'lib/google/cloud/logging/errors.rb', line 53 attr_reader :entries |
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
53 54 55 |
# File 'lib/google/cloud/logging/errors.rb', line 53 def entries @entries end |