Exception: VCloud::VCloudError
- Inherits:
-
StandardError
- Object
- StandardError
- VCloud::VCloudError
- Defined in:
- lib/vcloud/errors.rb
Instance Attribute Summary collapse
-
#major_error_code ⇒ Object
readonly
Returns the value of attribute major_error_code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#minor_error_code ⇒ Object
readonly
Returns the value of attribute minor_error_code.
-
#stack_trace ⇒ Object
readonly
Returns the value of attribute stack_trace.
-
#vendor_specific_error_code ⇒ Object
readonly
Returns the value of attribute vendor_specific_error_code.
Instance Method Summary collapse
-
#initialize(message, major_error_code, minor_error_code = nil, vendor_specific_error_code = nil, stack_trace = nil) ⇒ VCloudError
constructor
A new instance of VCloudError.
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(, major_error_code, minor_error_code = nil, vendor_specific_error_code = nil, stack_trace = nil) @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_code ⇒ Object (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 |
#message ⇒ Object (readonly)
Returns the value of attribute message.
21 22 23 |
# File 'lib/vcloud/errors.rb', line 21 def @message end |
#minor_error_code ⇒ Object (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_trace ⇒ Object (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_code ⇒ Object (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 |