File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
extensions/rest-client/runtime/src/main/java/org/jboss/shamrock/restclient/runtime Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 23
23
import org .eclipse .microprofile .config .ConfigProvider ;
24
24
import org .eclipse .microprofile .rest .client .RestClientBuilder ;
25
25
26
- import com .oracle .svm .core .jdk .UnsupportedFeatureError ;
27
-
28
26
public class RestClientBase {
29
27
30
28
public static final String REST_URL_FORMAT = "%s/mp-rest/url" ;
@@ -45,8 +43,11 @@ public Object create() {
45
43
return builder .baseUrl (new URL (baseUrl )).build (proxyType );
46
44
} catch (MalformedURLException e ) {
47
45
throw new IllegalArgumentException ("The value of URL was invalid " + baseUrl );
48
- } catch (UnsupportedFeatureError e ) {
49
- throw new IllegalArgumentException (baseUrl + " requires SSL support but it is disabled. You probably have set shamrock.ssl.native to false." );
46
+ } catch (Exception e ) {
47
+ if ("com.oracle.svm.core.jdk.UnsupportedFeatureError" .equals (e .getClass ().getCanonicalName ())) {
48
+ throw new IllegalArgumentException (baseUrl + " requires SSL support but it is disabled. You probably have set shamrock.ssl.native to false." );
49
+ }
50
+ throw e ;
50
51
}
51
52
}
52
53
You can’t perform that action at this time.
0 commit comments