Module: RubyHaze::Mixins::NativeException

Included in:
DOProxy
Defined in:
lib/rubyhaze/mixins/native_exception.rb

Instance Method Summary collapse

Instance Method Details

#rescue_native_exception(exception) ⇒ Object



5
6
7
8
9
# File 'lib/rubyhaze/mixins/native_exception.rb', line 5

def rescue_native_exception(exception)
  exception = exception.cause while exception.cause
  exception.print_stack_trace
  raise RubyHaze::HazelcastException.new(exception)
end