Module: FFI::LastError
- Defined in:
- lib/rbtrace/core_ext.rb
Constant Summary collapse
- Errnos =
Errno::constants.map(&Errno.method(:const_get)).inject({}) do |hash, c| hash[ c.const_get(:Errno) ] = c hash end
Class Method Summary collapse
Class Method Details
.exception ⇒ Object
11 12 13 |
# File 'lib/rbtrace/core_ext.rb', line 11 def self.exception Errnos[error] end |
.raise(msg = nil) ⇒ Object
14 15 16 |
# File 'lib/rbtrace/core_ext.rb', line 14 def self.raise(msg=nil) Kernel.raise exception, msg end |