Skip to content

Commit 8022f09

Browse files
committed
feat: enhance exception oracle nosql
Signed-off-by: Otavio Santana <[email protected]>
1 parent b933f86 commit 8022f09

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

jnosql-oracle/src/main/java/org/eclipse/jnosql/databases/oracle/communication/DeploymentType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public Optional<AuthorizationProvider> apply(Settings settings) {
7373
try {
7474
return Optional.of(new SignatureProvider());
7575
} catch (IOException e) {
76-
throw new RuntimeException(e);
76+
throw new OracleNoSQLException("Error to load configuration to Oracle Cloud at Oracle NoSQL", e);
7777
}
7878

7979
}

jnosql-oracle/src/main/java/org/eclipse/jnosql/databases/oracle/communication/OracleNoSQLException.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@ public OracleNoSQLException(String message) {
2323
super(message);
2424
}
2525

26+
public OracleNoSQLException(String message, Throwable cause) {
27+
super(message, cause);
28+
}
29+
2630
}

0 commit comments

Comments
 (0)