How to get the text of an exception stack trace in Java ME?

前端 未结 5 1342
野的像风
野的像风 2021-02-15 13:20

In regular Java, you can get the text of a stack trace by passing a PrintWriter to printStackTrace. I have a feeling I know the answer to this (i.e. \"No\") but,

Is ther

5条回答
  •  一个人的身影
    2021-02-15 14:06

    I've created a tool that can be used to log proper stack traces also in CLDC. Check it out at http://jarrut.sourceforge.net. It's still very new and it might have some rough edges, but it works for me and I couldn't imagine developing MIDlets without it anymore. Best way to use it is to combine it with microlog.

    Unfotunately the tool currently requires CLDC 1.1 so it might not solve the problem for the original poster.

提交回复
热议问题