[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Who should log an Exception

Felix Dorner wrote:
Now it happens to be the case that the other plug-in also logged that exception (in this concrete case I refer to org.eclipse.core.ant.AntRunner) so I get the same thing twice in the error log.

Well actually the AntRunner just throws the exception without logging it. I was blinded by seeing org.eclipse.core.ant in the error log. This happened because I wrapped the catched CoreException into an IStatus which I sent to the log. That CoreException contains an IStatus (wow, I didn't know that..) So the log just displayed an entry with my status at the root and the wrapped IStatus of the ant plugin as its child.


Puh, anyway, the question's still there..

Felix