Replace deep exception message nesting with custom inclusion of cause messages
Includes deprecation of NestedServletException, whereas NestedCheckedException and NestedRuntimeException remain as base classes with several convenience methods. Closes gh-25162
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -181,7 +181,8 @@ public class WebSocketHttpRequestHandler implements HttpRequestHandler, Lifecycl
|
||||
failure = ex;
|
||||
}
|
||||
catch (Exception ex) {
|
||||
failure = new HandshakeFailureException("Uncaught failure for request " + request.getURI(), ex);
|
||||
failure = new HandshakeFailureException(
|
||||
"Uncaught failure for request " + request.getURI() + " - " + ex.getMessage(), ex);
|
||||
}
|
||||
finally {
|
||||
if (failure != null) {
|
||||
|
||||
Reference in New Issue
Block a user