Skip to content

Always add exception cause (first PR)#2250

Open
hendrikebbers wants to merge 2 commits intobcgit:mainfrom
hendrikebbers:exception-cause
Open

Always add exception cause (first PR)#2250
hendrikebbers wants to merge 2 commits intobcgit:mainfrom
hendrikebbers:exception-cause

Conversation

@hendrikebbers
Copy link

This PR is based on #2239

The PR does not fix the issue but only changes some first places. Once the PR is merged I will continue by creating PRs for each module.

@dghgit
Copy link
Contributor

dghgit commented Mar 4, 2026

The constructor in use was not added till Java 5, we still support Java 4.

If you use org.bouncycastle.util.Exceptions.illegalArgumentException() you'll get the effect you want as well as maintaining the compatibility we need to support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants