For example
try
{
}
catch (IOException e)
{
throw new SampleException("Other IOException", e);
}
The following are the methods and constructors in Throwable that support chained exceptions.
Throwable getCause()
Throwable initCause(Throwable)
Throwable(String, Throwable)
Throwable(Throwable)
No comments:
Post a Comment