Exception: XS::ContextError
- Inherits:
-
XSError
- Object
- StandardError
- XSError
- XS::ContextError
- Defined in:
- lib/ffi-rxs/exceptions.rb
Overview
Context error class
Instance Attribute Summary
Attributes inherited from XSError
#error_code, #message, #result_code, #source
Instance Method Summary (collapse)
-
- (Boolean) einval?
True when the exception was raised due to the library returning EINVAL.
-
- (Boolean) eterm?
True when the exception was raised due to the library returning ETERM.
Methods inherited from XSError
Constructor Details
This class inherits a constructor from XS::XSError
Instance Method Details
- (Boolean) einval?
True when the exception was raised due to the library returning EINVAL.
Occurs when he number of app_threads requested is less than one, or the number of io_threads requested is negative.
27 |
# File 'lib/ffi-rxs/exceptions.rb', line 27 def einval?() EINVAL == @error_code; end |
- (Boolean) eterm?
True when the exception was raised due to the library returning ETERM.
The associated context was terminated.
34 |
# File 'lib/ffi-rxs/exceptions.rb', line 34 def eterm?() ETERM == @error_code; end |