Exception: XS::XSError
- Inherits:
-
StandardError
- Object
- StandardError
- XS::XSError
- Defined in:
- lib/ffi-rxs/exceptions.rb
Overview
General Crossroads error class
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (Object) error_code
readonly
Returns the value of attribute error_code.
-
- (Object) message
readonly
Returns the value of attribute message.
-
- (Object) result_code
readonly
Returns the value of attribute result_code.
-
- (Object) source
readonly
Returns the value of attribute source.
Instance Method Summary (collapse)
-
- (XSError) initialize(source, result_code, error_code, message)
constructor
A new instance of XSError.
Constructor Details
- (XSError) initialize(source, result_code, error_code, message)
A new instance of XSError
8 9 10 11 12 13 14 15 |
# File 'lib/ffi-rxs/exceptions.rb', line 8 def initialize source, result_code, error_code, @source = source @result_code = result_code @error_code = error_code @message = "source [#{source}], msg [#{}], " + "error code [#{error_code}],rc [#{result_code}]" super end |
Instance Attribute Details
- (Object) error_code (readonly)
Returns the value of attribute error_code
6 7 8 |
# File 'lib/ffi-rxs/exceptions.rb', line 6 def error_code @error_code end |
- (Object) message (readonly)
Returns the value of attribute message
6 7 8 |
# File 'lib/ffi-rxs/exceptions.rb', line 6 def @message end |
- (Object) result_code (readonly)
Returns the value of attribute result_code
6 7 8 |
# File 'lib/ffi-rxs/exceptions.rb', line 6 def result_code @result_code end |
- (Object) source (readonly)
Returns the value of attribute source
6 7 8 |
# File 'lib/ffi-rxs/exceptions.rb', line 6 def source @source end |