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
7 8 9 |
# File 'lib/rbtrace/core_ext.rb', line 7 def self.exception Errnos[error] end |
.raise(msg = nil) ⇒ Object
10 11 12 |
# File 'lib/rbtrace/core_ext.rb', line 10 def self.raise(msg=nil) Kernel.raise exception, msg end |