I trying to throw inner exception in another exception through java Throwable
but IDE told my that you must surround it with try/cath
, What should I do to avoid from this problem?
try
{
//Some code
}
catch (IOException e)
{
Throwable cause = new Throwable();
cause.initCause(e);
throw cause.getCause();
}