Exception: XS::XSError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ffi-rxs/exceptions.rb

Overview

General Crossroads error class

Direct Known Subclasses

ContextError, MessageError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source, result_code, error_code, message) ⇒ XSError

Returns 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, message
  @source = source
  @result_code = result_code
  @error_code = error_code
  @message = "source [#{source}], msg [#{message}], " +
             "error code [#{error_code}],rc [#{result_code}]"
  super message
end

Instance Attribute Details

#error_codeObject (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

#messageObject (readonly)

Returns the value of attribute message.



6
7
8
# File 'lib/ffi-rxs/exceptions.rb', line 6

def message
  @message
end

#result_codeObject (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

#sourceObject (readonly)

Returns the value of attribute source.



6
7
8
# File 'lib/ffi-rxs/exceptions.rb', line 6

def source
  @source
end