Exception: Curl::Easy::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/curl/easy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, msg) ⇒ Error

Returns a new instance of Error


11
12
13
14
# File 'lib/curl/easy.rb', line 11

def initialize(code, msg)
  self.message = msg
  self.code = code
end

Instance Attribute Details

#codeObject

Returns the value of attribute code


10
11
12
# File 'lib/curl/easy.rb', line 10

def code
  @code
end

#messageObject

Returns the value of attribute message


10
11
12
# File 'lib/curl/easy.rb', line 10

def message
  @message
end