Exception: CDNGet::HttpError
- Inherits:
-
StandardError
- Object
- StandardError
- CDNGet::HttpError
- Defined in:
- lib/cdnget.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#msgtext ⇒ Object
readonly
Returns the value of attribute msgtext.
Instance Method Summary collapse
-
#initialize(code, msgtext) ⇒ HttpError
constructor
A new instance of HttpError.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
93 94 95 |
# File 'lib/cdnget.rb', line 93 def code @code end |
#msgtext ⇒ Object (readonly)
Returns the value of attribute msgtext.
93 94 95 |
# File 'lib/cdnget.rb', line 93 def msgtext @msgtext end |