Exception: OracleCloud::Exception::HTTPError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- OracleCloud::Exception::HTTPError
- Defined in:
- lib/oraclecloud/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#code ⇒ Object
Returns the value of attribute code.
-
#error ⇒ Object
Returns the value of attribute error.
-
#klass ⇒ Object
Returns the value of attribute klass.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(opts = {}) ⇒ HTTPError
Returns a new instance of HTTPError.
25 26 27 28 29 30 31 |
# File 'lib/oraclecloud/exceptions.rb', line 25 def initialize(opts = {}) @code = opts[:code] @body = opts[:body] @path = opts[:path] @klass = opts[:klass] @error = opts[:error] end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
24 25 26 |
# File 'lib/oraclecloud/exceptions.rb', line 24 def body @body end |
#code ⇒ Object
Returns the value of attribute code.
24 25 26 |
# File 'lib/oraclecloud/exceptions.rb', line 24 def code @code end |
#error ⇒ Object
Returns the value of attribute error.
24 25 26 |
# File 'lib/oraclecloud/exceptions.rb', line 24 def error @error end |
#klass ⇒ Object
Returns the value of attribute klass.
24 25 26 |
# File 'lib/oraclecloud/exceptions.rb', line 24 def klass @klass end |
#path ⇒ Object
Returns the value of attribute path.
24 25 26 |
# File 'lib/oraclecloud/exceptions.rb', line 24 def path @path end |