Exception: Azure::Armrest::ApiException
- Defined in:
- lib/azure/armrest/exception.rb
Direct Known Subclasses
BadGatewayException, BadRequestException, GatewayTimeoutException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Attributes inherited from Exception
Instance Method Summary collapse
-
#initialize(code, message, cause_exception) ⇒ ApiException
constructor
A new instance of ApiException.
- #to_s ⇒ Object
Constructor Details
#initialize(code, message, cause_exception) ⇒ ApiException
24 25 26 27 |
# File 'lib/azure/armrest/exception.rb', line 24 def initialize(code, , cause_exception) @code = code super(, cause_exception) end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
22 23 24 |
# File 'lib/azure/armrest/exception.rb', line 22 def code @code end |
Instance Method Details
#to_s ⇒ Object
29 30 31 |
# File 'lib/azure/armrest/exception.rb', line 29 def to_s "[#{code}] #{message}" end |