Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Kernel
- alias _raise raise
- def raise(*a)
- begin
- _raise(*a)
- rescue Exception => e
- # for example, use a log file.
- File.open("C:/err.txt", 'w') {|f| f.write("#{err.class} : #{err.message}")}
- end
- end
- end
- errorvar
Advertisement
Add Comment
Please, Sign In to add comment