Exception: Azure::Error::Error
- Inherits:
-
Core::Error
- Object
- StandardError
- Core::Error
- Azure::Error::Error
- Defined in:
- lib/azure/core/utility.rb
Overview
Azure Error
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, status, description) ⇒ Error
constructor
A new instance of Error.
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
#description ⇒ Object (readonly)
Returns the value of attribute description.
31 32 33 |
# File 'lib/azure/core/utility.rb', line 31 def description @description end |
#status_code ⇒ Object (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 |
#type ⇒ Object (readonly)
Returns the value of attribute type.
33 34 35 |
# File 'lib/azure/core/utility.rb', line 33 def type @type end |