Class: Fog::AzureRm::OperationError

Inherits:
MsRestAzure::AzureOperationError
  • Object
show all
Defined in:
lib/fog/azurerm/fog_azure_rm_exception.rb

Overview

Custom exception class

Instance Method Summary collapse

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