lib/internal_lite3/error.rb in dbmlite3_jruby-2.0.0.pre.alpha.6 vs lib/internal_lite3/error.rb in dbmlite3_jruby-2.0.0
- old
+ new
@@ -8,20 +8,16 @@
# either my code or your code is incorrect.
class InternalError < Error; end
private
-
module ErrUtil
-
# Error check: if block evaluates to false, raise a Lite3::DBM::Error
# with the given message.
def check(message, &block)
return if block && block.call
raise InternalError.new(message)
end
-
end
-
private_constant :ErrUtil
end