Exception: XS::MessageError

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

Overview

Message 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

#enomem?Boolean

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

Only ever raised by the Message class when it fails to allocate sufficient memory to send a message.

Returns:

  • (Boolean)


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

def enomem?() ENOMEM == @error_code; end