Exception: Gettc::CookieError

Inherits:
DownloadError show all
Defined in:
lib/gettc/download.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cookie, message = "Cookie is in bad format") ⇒ CookieError

Returns a new instance of CookieError.



54
55
56
57
# File 'lib/gettc/download.rb', line 54

def initialize(cookie, message = "Cookie is in bad format")
  @cookie = cookie
  super "#{message}\nCookie: #{@cookie}"
end

Instance Attribute Details

Returns the value of attribute cookie.



52
53
54
# File 'lib/gettc/download.rb', line 52

def cookie
  @cookie
end