lib/ib/errors.rb in ib-ruby-0.8.5 vs lib/ib/errors.rb in ib-ruby-0.9.0
- old
+ new
@@ -11,10 +11,13 @@
end
class LoadError < LoadError
end
+ class FlexError < RuntimeError
+ end
+
end # module IB
# Patching Object with universally accessible top level error method.
# The method is used throughout the lib instead of plainly raising exceptions.
# This allows lib user to easily inject user-specific error handling into the lib
@@ -27,9 +30,11 @@
IB::ArgumentError.new message
when :symbol
IB::SymbolError.new message
when :load
IB::LoadError.new message
+ when :flex
+ IB::FlexError.new message
end
e.set_backtrace(backtrace) if backtrace
raise e
end