Original Post
I'm trying to get the stack trace out of an Exception on J2ME. Anyone know how to do this? Exception.printStackTrace() doesn't do it for me, because I need an actual String in order to display it (the bug only occurs when running on the phone, and I can't see System.err on the phone). Exception.toString() doesn't quite do it either, because that only gives me the type of exception, it doesn't give me the whole stack trace. Alternatively, if there was some way to redirect System.err, then that would work too. But so far all my attempts to do that have failed as well. Thanks!