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.



88
89
90
91
92
# File 'lib/cdnget.rb', line 88

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



93
94
95
# File 'lib/cdnget.rb', line 93

def code
  @code
end

#msgtextObject (readonly)

Returns the value of attribute msgtext.



93
94
95
# File 'lib/cdnget.rb', line 93

def msgtext
  @msgtext
end