Sha256: 47a44c15a2578a81c0c560ba45f934d52ef7baff5023410f91dfeb85c4ef4180

Contents?: true

Size: 687 Bytes

Versions: 11

Compression:

Stored size: 687 Bytes

Contents

# This file contains any or all custom Fog errors that we create
module Fog
  module AzureRM
    # This is a custom Fog exception inherited from MsRestAzure::AzureOperationError
    class CustomAzureOperationError < MsRestAzure::AzureOperationError
      def initialize(message, azure_exception)
        super(azure_exception.request, azure_exception.response, azure_exception.body, "Exception in #{message}")
      end
    end

    # This is a custom Fog exception inherited from Azure::Core::Http::HTTPError
    class CustomAzureCoreHttpError < Azure::Core::Http::HTTPError
      def initialize(azure_exception)
        super(azure_exception.http_response)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
far-gem-0.5.6 lib/fog/azurerm/custom_fog_errors.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/custom_fog_errors.rb
far-gem-0.5.5 lib/fog/azurerm/custom_fog_errors.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/custom_fog_errors.rb
far-gem-0.5.4 lib/fog/azurerm/custom_fog_errors.rb
far-gem-0.5.3 lib/fog/azurerm/custom_fog_errors.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/custom_fog_errors.rb
far-gem-0.5.2 lib/fog/azurerm/custom_fog_errors.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/custom_fog_errors.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/custom_fog_errors.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/custom_fog_errors.rb