Skip to content

Commit

Permalink
Using the right exception
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Jul 14, 2022
1 parent d8afafc commit 950ab1d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.slf4j.LoggerFactory;

import com.helger.commons.ValueEnforcer;
import com.helger.commons.exception.InitializationException;
import com.helger.commons.url.URLHelper;
import com.helger.dcng.api.DcngConfig;
import com.helger.dcng.core.http.DcngHttpClientSettings;
Expand Down Expand Up @@ -96,7 +95,7 @@ private static BDXRClientReadOnly _getSMPClient (@Nonnull final IParticipantIden
}
catch (final GeneralSecurityException ex)
{
throw new InitializationException ("Failed to set SSL Context or Hostname verifier for SMP client", ex);
throw new IllegalStateException ("Failed to set SSL Context or Hostname verifier for SMP client", ex);
}
}

Expand Down

0 comments on commit 950ab1d

Please sign in to comment.