Exception: OpenStack::Compute::Exception::ComputeError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenStack::Compute::Exception::ComputeError
- Defined in:
- lib/openstack/compute/exception.rb
Direct Known Subclasses
BackupOrResizeInProgress, BadMediaType, BadMethod, BadRequest, BuildInProgress, ComputeFault, ItemNotFound, NotImplemented, Other, OverLimit, ResizeNotAllowed, ServerCapacityUnavailable, ServiceUnavailable, Unauthorized
Instance Attribute Summary collapse
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#response_code ⇒ Object
readonly
Returns the value of attribute response_code.
Instance Method Summary collapse
-
#initialize(message, code, response_body) ⇒ ComputeError
constructor
A new instance of ComputeError.
Constructor Details
#initialize(message, code, response_body) ⇒ ComputeError
Returns a new instance of ComputeError.
10 11 12 13 14 |
# File 'lib/openstack/compute/exception.rb', line 10 def initialize(, code, response_body) @response_code=code @response_body=response_body super() end |
Instance Attribute Details
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
7 8 9 |
# File 'lib/openstack/compute/exception.rb', line 7 def response_body @response_body end |
#response_code ⇒ Object (readonly)
Returns the value of attribute response_code.
8 9 10 |
# File 'lib/openstack/compute/exception.rb', line 8 def response_code @response_code end |