Exception: GooglApi::GooglError
- Inherits:
-
StandardError
- Object
- StandardError
- GooglApi::GooglError
- Defined in:
- lib/googl-api/client.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, code) ⇒ GooglError
constructor
A new instance of GooglError.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
54 55 56 |
# File 'lib/googl-api/client.rb', line 54 def code @code end |