Exception: YoutubePop::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, e = $!) ⇒ Error

Returns a new instance of Error.



9
10
11
12
# File 'lib/youtube_pop/standard_api.rb', line 9

def initialize(msg, e=$!)
  super(msg)
  @source_exception = e
end

Instance Attribute Details

#source_exceptionObject (readonly)

Returns the value of attribute source_exception.



8
9
10
# File 'lib/youtube_pop/standard_api.rb', line 8

def source_exception
  @source_exception
end