Exception: Azure::Error::Error

Inherits:
Core::Error show all
Defined in:
lib/azure/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.



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

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.



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

def description
  @description
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



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

def status_code
  @status_code
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end