Class: Fog::AzureRm::OperationError
- Inherits:
-
MsRestAzure::AzureOperationError
- Object
- MsRestAzure::AzureOperationError
- Fog::AzureRm::OperationError
- Defined in:
- lib/fog/azurerm/fog_azure_rm_exception.rb
Overview
Custom exception class
Instance Method Summary collapse
-
#initialize(exception) ⇒ OperationError
constructor
A new instance of OperationError.
Constructor Details
#initialize(exception) ⇒ OperationError
Returns a new instance of OperationError.
5 6 7 8 9 10 |
# File 'lib/fog/azurerm/fog_azure_rm_exception.rb', line 5 def initialize(exception) super(exception.body['error']['message']) self.request = exception.request self.response = exception.response set_backtrace(exception.backtrace) end |