T
thelazydogsback
I'm trying to catch exceptions that are happening on some J2ME (MIDP1)
phones. I notice that j.l.Exception does not have a LineNumber field.
There is no stdout or stderr that I have access to.
If I could capture the exception information, I could do something else
with it like draw the string locally or send it to my server to display
there.
There is a PrintStackTrace method - but no equally easy to call but
more powerful GetStackTrace - why would anyone design-in a side-effect
only function like this?
And why the hell is System.err "final" - otherwise I'd reassign it to
an output stream that I could capture... (This is the problem with OOP
unless there's an escape mechanism...)
Is there a way to do this that I'm missing?
thanks,
mike
phones. I notice that j.l.Exception does not have a LineNumber field.
There is no stdout or stderr that I have access to.
If I could capture the exception information, I could do something else
with it like draw the string locally or send it to my server to display
there.
There is a PrintStackTrace method - but no equally easy to call but
more powerful GetStackTrace - why would anyone design-in a side-effect
only function like this?
And why the hell is System.err "final" - otherwise I'd reassign it to
an output stream that I could capture... (This is the problem with OOP
unless there's an escape mechanism...)
Is there a way to do this that I'm missing?
thanks,
mike