Exception: VCloud::VCloudError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/vcloud/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, major_error_code, minor_error_code = nil, vendor_specific_error_code = nil, stack_trace = nil) ⇒ VCloudError

Returns a new instance of VCloudError.



23
24
25
26
27
28
29
# File 'lib/vcloud/errors.rb', line 23

def initialize(message, major_error_code, minor_error_code = nil, vendor_specific_error_code = nil, stack_trace = nil)
  @message                    = message
  @major_error_code           = major_error_code
  @minor_error_code           = minor_error_code
  @vendor_specific_error_code = vendor_specific_error_code
  @stack_trace                = stack_trace
end

Instance Attribute Details

#major_error_codeObject (readonly)

Returns the value of attribute major_error_code.



21
22
23
# File 'lib/vcloud/errors.rb', line 21

def major_error_code
  @major_error_code
end

#messageObject (readonly)

Returns the value of attribute message.



21
22
23
# File 'lib/vcloud/errors.rb', line 21

def message
  @message
end

#minor_error_codeObject (readonly)

Returns the value of attribute minor_error_code.



21
22
23
# File 'lib/vcloud/errors.rb', line 21

def minor_error_code
  @minor_error_code
end

#stack_traceObject (readonly)

Returns the value of attribute stack_trace.



21
22
23
# File 'lib/vcloud/errors.rb', line 21

def stack_trace
  @stack_trace
end

#vendor_specific_error_codeObject (readonly)

Returns the value of attribute vendor_specific_error_code.



21
22
23
# File 'lib/vcloud/errors.rb', line 21

def vendor_specific_error_code
  @vendor_specific_error_code
end