This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 9d467623af Avoid needless exception wrapping
9d467623af is described below

commit 9d467623af6e8c9c06674b726c11dbd04bb75dc1
Author: remm <r...@apache.org>
AuthorDate: Tue Sep 19 14:09:17 2023 +0200

    Avoid needless exception wrapping
---
 java/org/apache/tomcat/util/net/AbstractEndpoint.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java 
b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
index 6a86799b8f..9ec7ed50df 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -269,6 +269,9 @@ public abstract class AbstractEndpoint<S,U> {
             try {
                 createSSLContext(sslHostConfig);
             } catch (Exception e) {
+                if (e instanceof IllegalArgumentException) {
+                    throw e;
+                }
                 throw new IllegalArgumentException(e);
             }
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to