Skip to content

Create native exception hierarchy and simplify handling#1412

Merged
jasonkatonica merged 1 commit intoIBM:mainfrom
KostasTsiounis:native_exception
May 5, 2026
Merged

Create native exception hierarchy and simplify handling#1412
jasonkatonica merged 1 commit intoIBM:mainfrom
KostasTsiounis:native_exception

Conversation

@KostasTsiounis
Copy link
Copy Markdown
Member

A new native exception hierarchy is created to include a NativeException superclass. This will allow for different native exception subclassses thrown by different native libraries.

The try-catch blocks were also simplified to improve readability.

Signed-off-by: Kostas Tsiounis kostas.tsiounis@ibm.com

Comment thread src/main/java/com/ibm/crypto/plus/provider/base/NativeException.java Outdated
Comment thread src/main/java/com/ibm/crypto/plus/provider/ock/OCKException.java
Copy link
Copy Markdown
Member

@jasonkatonica jasonkatonica left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Collaborator

@JinhangZhang JinhangZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Collaborator

@taoliult taoliult left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

A new native exception hierarchy is created to include a NativeException
superclass. This will allow for different native exception subclassses
thrown by different native libraries.

The try-catch blocks were also simplified to improve readability.

Signed-off-by: Kostas Tsiounis <kostas.tsiounis@ibm.com>
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.

5 participants