Skip to content

EDGAPIUTL-39: Add cause to AuthorizationException and PropertiesUtil#42

Merged
julianladisch merged 2 commits into
masterfrom
EDGAPIUTL-39
Jul 20, 2026
Merged

EDGAPIUTL-39: Add cause to AuthorizationException and PropertiesUtil#42
julianladisch merged 2 commits into
masterfrom
EDGAPIUTL-39

Conversation

@julianladisch

Copy link
Copy Markdown
Contributor

https://folio-org.atlassian.net/browse/EDGAPIUTL-39

Purpose

When throwing an AuthorizationException the cause if any should be stored so that it can be logged.

Currently the cause is suppressed.

Approach

Add the AuthorizationException(String message, Throwable cause) constructor.

Use the new constructor in PropertiesUtil.

Learning

When creating a custom Exception class always add a constructor with cause.

Pre-Merge Checklist:

Before merging this PR, please go through the following list and take appropriate actions.

  • Does this PR meet or exceed the expected quality standards?
    • Code coverage on new code is 80% or greater
    • Duplications on new code is 3% or less
    • There are no major code smells or security issues
  • Does this introduce breaking changes?
    • There are no breaking changes in this PR.

https://folio-org.atlassian.net/browse/EDGAPIUTL-39

When throwing an AuthorizationException the cause if any should be stored so that it can be logged.

Currently the cause is suppressed.

Approach

Add the AuthorizationException(String message, Throwable cause) constructor.

Use the new constructor in PropertiesUtil.
@sonarqubecloud

Copy link
Copy Markdown

@julianladisch
julianladisch merged commit 22fa91b into master Jul 20, 2026
16 checks passed
@julianladisch
julianladisch deleted the EDGAPIUTL-39 branch July 20, 2026 16:48
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