Class: Azure::Storage::Common::Error::Error
- Inherits:
-
Core::Error
- Object
- Core::Error
- Azure::Storage::Common::Error::Error
- Defined in:
- lib/azure/storage/common/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.
47 48 49 50 51 52 |
# File 'lib/azure/storage/common/core/utility.rb', line 47 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.
43 44 45 |
# File 'lib/azure/storage/common/core/utility.rb', line 43 def description @description end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
44 45 46 |
# File 'lib/azure/storage/common/core/utility.rb', line 44 def status_code @status_code end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
45 46 47 |
# File 'lib/azure/storage/common/core/utility.rb', line 45 def type @type end |