Class: Fog::CloudSigma::Errors::Error

Inherits:
Errors::Error
  • Object
show all
Defined in:
lib/fog/cloudsigma/error.rb

Direct Known Subclasses

NotFound, RequestError, ServerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, type = 'n/a', error_point = nil) ⇒ Error

Returns a new instance of Error



7
8
9
10
11
# File 'lib/fog/cloudsigma/error.rb', line 7

def initialize(message, type='n/a', error_point=nil)
  @type = type
  @error_point = error_point
  super(message)
end

Instance Attribute Details

#error_pointObject

Returns the value of attribute error_point



5
6
7
# File 'lib/fog/cloudsigma/error.rb', line 5

def error_point
  @error_point
end

#typeObject

Returns the value of attribute type



5
6
7
# File 'lib/fog/cloudsigma/error.rb', line 5

def type
  @type
end