Skip to content

Commit 60c7b6d

Browse files
committed
[NOD-706] fix: using an unchecked exception for error throws
1 parent 52c5ae3 commit 60c7b6d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/it/gov/pagopa/nodoverifykotodatastore/NodoVerifyKOEventToDataStore.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
public class NodoVerifyKOEventToDataStore {
2424

2525
@FunctionName("EventHubNodoVerifyKOEventToDSProcessor")
26+
@ExponentialBackoffRetry(maxRetryCount = 0, minimumInterval = "", maximumInterval = "")
2627
public void processNodoVerifyKOEvent (
2728
@EventHubTrigger(
2829
name = "NodoVerifyKOEvent",
@@ -38,7 +39,7 @@ public void processNodoVerifyKOEvent (
3839
createIfNotExists = false,
3940
connection = "COSMOS_CONN_STRING")
4041
@NonNull OutputBinding<List<Object>> documentdb,
41-
final ExecutionContext context) throws AppException {
42+
final ExecutionContext context) {
4243

4344
String errorCause = null;
4445
boolean isPersistenceOk = true;

src/main/java/it/gov/pagopa/nodoverifykotodatastore/exception/AppException.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package it.gov.pagopa.nodoverifykotodatastore.exception;
22

3-
public class AppException extends Exception {
3+
public class AppException extends RuntimeException {
44

55
public AppException(String message) {
66
super(message);

0 commit comments

Comments
 (0)