[Spread-users] Spread Java: SpreadException is not providing cause
marten.gustafson at gmail.com
Thu Aug 20 13:16:54 EDT 2009
What's the chance of getting SpreadException adjusted to incorporate
two new constructors:
public SpreadException(Throwable cause)
public SpreadException(String message, Throwable cause)
And have the Java lib provide cause when throwing a SpreadException?
That would enable us to write code like this
if(e.getCause() instanceof SocketException)
// it was a network failure, try to recover/reconnect/whatever
// we're doomed
I'd be happy to write up a patch for the entire Java lib, just let me know.
More information about the Spread-users