Exception: XS::ContextError

Inherits:
XSError
  • Object
show all
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

Methods inherited from XSError

#initialize

Constructor Details

This class inherits a constructor from XS::XSError

Instance Method Details

#einval?Boolean

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.

Returns:

  • (Boolean)


27
# File 'lib/ffi-rxs/exceptions.rb', line 27

def einval?() EINVAL == @error_code; end

#eterm?Boolean

True when the exception was raised due to the library returning ETERM.

The associated context was terminated.

Returns:

  • (Boolean)


34
# File 'lib/ffi-rxs/exceptions.rb', line 34

def eterm?() ETERM == @error_code; end