[jcifs] jcifs.util.transport.TransportException getMessage() returning null

Michael Matczynski mjm at alum.mit.edu
Thu Feb 18 09:40:57 MST 2010


Hello!

Is there any reason jcifs.util.transport.TransportException has its
own Throwable rootCause instead of passing it to IOException's
super(cause) constructor?

I'm hitting an issue where sometimes TransportException.getMessage()
returns null but other times it returns the Throwable's toString().
The default behavior in Throwable(Throwable cause) sets the
detailMessage to cause.toString() if no explicit message is provided:

public Throwable(Throwable cause) {
        fillInStackTrace();
        detailMessage = (cause==null ? null : cause.toString());
        this.cause = cause;
    }

Thanks!
Mike


More information about the jCIFS mailing list