Exception: EC2::Common::Curl::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- EC2::Common::Curl::Error
- Defined in:
- lib/ec2/common/curl.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code = 22) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code = 22) ⇒ Error
Returns a new instance of Error.
27 28 29 30 |
# File 'lib/ec2/common/curl.rb', line 27 def initialize(, code=22) super @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
26 27 28 |
# File 'lib/ec2/common/curl.rb', line 26 def code @code end |