Exception: EC2::Common::HTTP::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- EC2::Common::HTTP::Error
- Defined in:
- lib/ec2/common/http.rb
Overview
Errors.
Direct Known Subclasses
Defined Under Namespace
Classes: BadDigest, PathInvalid, Redirect, Retrieve, Transfer, Write
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, code = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg, code = nil) ⇒ Error
Returns a new instance of Error.
46 47 48 49 |
# File 'lib/ec2/common/http.rb', line 46 def initialize(msg, code = nil) super(msg) @code = code || 1 end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
45 46 47 |
# File 'lib/ec2/common/http.rb', line 45 def code @code end |