Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expanding specification of a user supplied exception override class #1551

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

cardid-zz
Copy link

For those cases when HikariCP cannot establish connection for some reasons, like changed password, may need to shutdown entire HikariCP Datasource.
I expanded previously added SQLExceptionOverride class by adding method onException which passing instance of HikariDatasource and exception to application.

@cardid-zz cardid-zz changed the title Expand specification of a user supplied exception override class Expanding specification of a user supplied exception override class Mar 5, 2020
@codecov
Copy link

codecov bot commented Mar 5, 2020

Codecov Report

Merging #1551 (91d998e) into dev (ed2da5f) will decrease coverage by 0.08%.
The diff coverage is 83.33%.

Impacted file tree graph

@@             Coverage Diff              @@
##                dev    #1551      +/-   ##
============================================
- Coverage     70.75%   70.66%   -0.09%     
- Complexity      575      578       +3     
============================================
  Files            26       26              
  Lines          2171     2182      +11     
  Branches        311      312       +1     
============================================
+ Hits           1536     1542       +6     
- Misses          484      486       +2     
- Partials        151      154       +3     
Impacted Files Coverage Δ
.../main/java/com/zaxxer/hikari/HikariDataSource.java 78.57% <ø> (ø)
...n/java/com/zaxxer/hikari/SQLExceptionOverride.java 60.00% <0.00%> (-15.00%) ⬇️
...c/main/java/com/zaxxer/hikari/pool/HikariPool.java 80.99% <66.66%> (-0.14%) ⬇️
src/main/java/com/zaxxer/hikari/HikariConfig.java 77.71% <100.00%> (+0.18%) ⬆️
src/main/java/com/zaxxer/hikari/pool/PoolBase.java 72.56% <100.00%> (+0.40%) ⬆️
...ain/java/com/zaxxer/hikari/util/ConcurrentBag.java 73.40% <0.00%> (-2.13%) ⬇️
...n/java/com/zaxxer/hikari/pool/ProxyConnection.java 77.84% <0.00%> (-0.64%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed2da5f...91d998e. Read the comment docs.

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.

1 participant