Issue #4903 - catch Throwable instead of RuntimeException

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2020-05-26 17:37:04 +10:00
parent c41560c7cd
commit 5c63b0ef78
1 changed files with 4 additions and 2 deletions

View File

@ -224,9 +224,11 @@ public class ServerContainer extends ClientContainer implements javax.websocket.
return metadata;
}
catch (RuntimeException e)
catch (Throwable t)
{
throw new DeploymentException(e.getMessage(), e);
if (t instanceof DeploymentException)
throw t;
throw new DeploymentException(t.getMessage(), t);
}
}