Exception: Azure::Error::Error

Inherits:
Core::Error show all
Defined in:
lib/azure/storage/core/utility.rb

Overview

Azure Error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, status, description) ⇒ Error

Returns a new instance of Error


36
37
38
39
40
41
# File 'lib/azure/storage/core/utility.rb', line 36

def initialize(type, status, description)
  @type = type
  @status_code = status
  @description = description
  super("#{type} (#{status_code}): #{description}")
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description


32
33
34
# File 'lib/azure/storage/core/utility.rb', line 32

def description
  @description
end

#status_codeObject (readonly)

Returns the value of attribute status_code


33
34
35
# File 'lib/azure/storage/core/utility.rb', line 33

def status_code
  @status_code
end

#typeObject (readonly)

Returns the value of attribute type


34
35
36
# File 'lib/azure/storage/core/utility.rb', line 34

def type
  @type
end