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.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
104 105 106 |
# File 'lib/cdnget.rb', line 104 def code @code end |
#msgtext ⇒ Object (readonly)
Returns the value of attribute msgtext.
104 105 106 |
# File 'lib/cdnget.rb', line 104 def msgtext @msgtext end |