Issue #4903 - add cause to Exception when creating endpoint instance
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
470d948504
commit
c41560c7cd
|
@ -72,7 +72,10 @@ public final class ContainerDefaultConfigurator extends Configurator
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new InstantiationException(String.format("%s: %s", e.getClass().getName(), e.getMessage()));
|
||||
String errorMsg = String.format("%s: %s", e.getClass().getName(), e.getMessage());
|
||||
InstantiationException instantiationException = new InstantiationException(errorMsg);
|
||||
instantiationException.initCause(e);
|
||||
throw instantiationException;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue