Hi all,
In my ISVNEditor implementation, I pass the received data to an external
class to process it. When that throws an exception, I encapsulate it in an
SVNException and throw it up again:
> catch (InnerException e) {
> SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "Could
> not process file contents");
> throw new SVNException(err, e);
> }
However, when I catch the SVNException higher up, and pass it to log4j, only
the SVNErrorMessage is printed out, and not the InnerException!
When testing with a regular exception, e.g.:
> try {
> throw new Exception("upper", new Exception("lower"));
> } catch (exception e) {
> logger.error(e);
> }
I properly get:
> java.lang.Exception: upper
> at foo.bar
> Caused by: java.lang.Exception: lower
> ... 4 more
Is this a bug in the SVNException class? Or should I pass the inner
exception in another manner?
Thanks,
maleadt
--
View this message in context:
http://old.nabble.com/Passing-an-exception-to-SVNException-tp31171795p31171795.html
Sent from the SVNKit - Users mailing list archive at Nabble.com.