Exception: YTAnalytics::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/yt_analytics.rb

Overview

Base error class for the extension

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code = 0) ⇒ Error

Returns a new instance of Error.



16
17
18
19
# File 'lib/yt_analytics.rb', line 16

def initialize(msg, code = 0)
  super(msg)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



15
16
17
# File 'lib/yt_analytics.rb', line 15

def code
  @code
end