Exception: UploadError

Inherits:
YouTubeIt::Error show all
Defined in:
lib/youtube_it/request/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code = 0) ⇒ UploadError

Returns a new instance of UploadError.



3
4
5
6
# File 'lib/youtube_it/request/error.rb', line 3

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



2
3
4
# File 'lib/youtube_it/request/error.rb', line 2

def code
  @code
end