Exception: CloudLB::Exception::CloudLBError
- Inherits:
-
StandardError
- Object
- StandardError
- CloudLB::Exception::CloudLBError
- Defined in:
- lib/cloudlb/exception.rb
Direct Known Subclasses
BadRequest, ImmutableEntity, ItemNotFound, LoadBalancerFault, Other, OutOfVirtualIps, OverLimit, ServiceFault, ServiceUnavailable, Unauthorized, UnprocessableEntity
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) ⇒ CloudLBError
constructor
A new instance of CloudLBError.
Constructor Details
#initialize(message, code, response_body) ⇒ CloudLBError
Returns a new instance of CloudLBError.
9 10 11 12 13 |
# File 'lib/cloudlb/exception.rb', line 9 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.
6 7 8 |
# File 'lib/cloudlb/exception.rb', line 6 def response_body @response_body end |
#response_code ⇒ Object (readonly)
Returns the value of attribute response_code.
7 8 9 |
# File 'lib/cloudlb/exception.rb', line 7 def response_code @response_code end |