Exception: GooglApi::GooglError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/googl-api/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code) ⇒ GooglError

Returns a new instance of GooglError.



56
57
58
59
# File 'lib/googl-api/client.rb', line 56

def initialize(msg, code)
  @code = code
  super("#{msg} - '#{code}'")
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



54
55
56
# File 'lib/googl-api/client.rb', line 54

def code
  @code
end