Class: Gapic::GenericLRO::Operation::GenericError

Inherits:
Object
  • Object
show all
Defined in:
lib/gapic/generic_lro/operation.rb

Overview

Represents a generic error that a generic LRO can report

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ GenericError

Returns a new instance of GenericError.

Parameters:

  • code (String)

    An error code

  • message (String)

    An error message



312
313
314
315
# File 'lib/gapic/generic_lro/operation.rb', line 312

def initialize code, message
  @code = code
  @message = message
end

Instance Attribute Details

#codeString

Returns An error code.

Returns:

  • (String)

    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, message
    @code = code
    @message = message
  end
end

#messageString

Returns An error message.

Returns:

  • (String)

    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, message
    @code = code
    @message = message
  end
end