Class: Gapic::GenericLRO::Operation::GenericError
- Inherits:
-
Object
- Object
- Gapic::GenericLRO::Operation::GenericError
- Defined in:
- lib/gapic/generic_lro/operation.rb
Overview
Represents a generic error that a generic LRO can report
Instance Attribute Summary collapse
-
#code ⇒ String
An error code.
-
#message ⇒ String
An error message.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ GenericError
constructor
A new instance of GenericError.
Constructor Details
#initialize(code, message) ⇒ GenericError
Returns a new instance of GenericError.
312 313 314 315 |
# File 'lib/gapic/generic_lro/operation.rb', line 312 def initialize code, @code = code @message = end |
Instance Attribute Details
#code ⇒ String
Returns An error code.
305 306 307 308 309 310 311 312 313 314 315 316 |
# File 'lib/gapic/generic_lro/operation.rb', line 305 class GenericError attr_accessor :code attr_accessor :message ## # @param code [String] An error code # @param message [String] An error message def initialize code, @code = code @message = end end |
#message ⇒ String
Returns An error message.
305 306 307 308 309 310 311 312 313 314 315 316 |
# File 'lib/gapic/generic_lro/operation.rb', line 305 class GenericError attr_accessor :code attr_accessor :message ## # @param code [String] An error code # @param message [String] An error message def initialize code, @code = code @message = end end |