Exception: Azure::Armrest::ApiException

Inherits:
Exception
  • Object
show all
Defined in:
lib/azure/armrest/exception.rb

Instance Attribute Summary collapse

Attributes inherited from Exception

#cause, #message

Instance Method Summary collapse

Constructor Details

#initialize(code, message, cause_exception) ⇒ ApiException



24
25
26
27
# File 'lib/azure/armrest/exception.rb', line 24

def initialize(code, message, cause_exception)
  @code = code
  super(message, cause_exception)
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



22
23
24
# File 'lib/azure/armrest/exception.rb', line 22

def code
  @code
end

Instance Method Details

#to_sObject



29
30
31
# File 'lib/azure/armrest/exception.rb', line 29

def to_s
  "[#{code}] #{message}"
end