Bukkit has its own built in API for catching the errors from plugins then printing the stack trace to the console. In my plugin, how can I catch any uncaught errors then take their stack trace and save it into a specific file? The only thing I need is catching the error/stack trace but I can not find any documentation about this. Any help would be appreciated. I already now how to save into a file and stuff like that.