Sha256: 7762b4e40d85da8c020f39f7993db15bcfe86e9a264607e4d05452b5ca585b22
Contents?: true
Size: 537 Bytes
Versions: 14
Compression:
Stored size: 537 Bytes
Contents
module IB # Error handling class Error < RuntimeError end class ArgumentError < ArgumentError end class LoadError < LoadError end end # module IB ### Patching Object with universally accessible top level error method def error message, type=:standard, backtrace=nil e = case type when :standard IB::Error.new message when :args IB::ArgumentError.new message when :load IB::LoadError.new message end e.set_backtrace(backtrace) if backtrace raise e end
Version data entries
14 entries across 14 versions & 1 rubygems