lib/knj/errors.rb in knjrbfw-0.0.94 vs lib/knj/errors.rb in knjrbfw-0.0.95
- old
+ new
@@ -13,10 +13,10 @@
# raise 'test'
# rescue => e
# print Knj::Errors.error_str(e, :html => true)
# end
def self.error_str(err, args = {})
- if !err.is_a?(Exception) and err.class.message != "Java::JavaLang::LinkageError"
+ if !err.is_a?(Exception) and err.class.name != "Java::JavaLang::LinkageError"
raise "Invalid object of class '#{err.class.name}' given."
end
str = ""
\ No newline at end of file