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.
111 112 113 114 |
# File 'lib/curl/easy.rb', line 111 def initialize(code, msg) self. = msg self.code = code end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
110 111 112 |
# File 'lib/curl/easy.rb', line 110 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
110 111 112 |
# File 'lib/curl/easy.rb', line 110 def @message end |