Skip to content

Commit 1dcf7c3

Browse files
committed
Minor fix
1 parent f06859f commit 1dcf7c3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/main/java/in/erail/security/SecurityTools.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ public String getGlobalUniqueString() {
8282
} catch (ExecutionException ex) {
8383
getLog().error("Global Unique not working", ex);
8484
} catch (InterruptedException ex) {
85-
throw new RuntimeException(ex);
85+
getLog().error(ex);
86+
Thread.currentThread().interrupt();
8687
}
8788
return "ERROR_GLOBAL_KEY";
8889
}
@@ -115,7 +116,8 @@ public String encrypt(String value) {
115116
| ExecutionException ex) {
116117
getLog().error(ex);
117118
} catch (InterruptedException ex) {
118-
throw new RuntimeException(ex);
119+
getLog().error(ex);
120+
Thread.currentThread().interrupt();
119121
}
120122

121123
return null;
@@ -143,7 +145,8 @@ public String decrypt(String encrypted) {
143145
| ExecutionException ex) {
144146
getLog().error(ex);
145147
} catch (InterruptedException ex) {
146-
throw new RuntimeException(ex);
148+
getLog().error(ex);
149+
Thread.currentThread().interrupt();
147150
}
148151

149152
return null;

0 commit comments

Comments
 (0)