Exception: Curl::Easy::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Curl::Easy::Error
- Defined in:
- lib/curl/easy.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(code, msg) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code, msg) ⇒ Error
Returns a new instance of Error.
124 125 126 127 |
# File 'lib/curl/easy.rb', line 124 def initialize(code, msg) self. = msg self.code = code end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
123 124 125 |
# File 'lib/curl/easy.rb', line 123 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
123 124 125 |
# File 'lib/curl/easy.rb', line 123 def @message end |