Exception: CDNGet::HttpError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cdnget.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, msgtext) ⇒ HttpError

Returns a new instance of HttpError.



99
100
101
102
103
# File 'lib/cdnget.rb', line 99

def initialize(code, msgtext)
  super("#{code} #{msgtext}")
  @code = code
  @msgtext = msgtext
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



104
105
106
# File 'lib/cdnget.rb', line 104

def code
  @code
end

#msgtextObject (readonly)

Returns the value of attribute msgtext.



104
105
106
# File 'lib/cdnget.rb', line 104

def msgtext
  @msgtext
end