-
Notifications
You must be signed in to change notification settings - Fork 0
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
[PAGOPA-2686] opex: Add error-codes #11
base: main
Are you sure you want to change the base?
Conversation
"Error processing or sending data to event hub: %s. Details: %s", | ||
flussoRendicontazione.getIdentificativoFlusso(), e.getMessage()); | ||
"[%s] Error processing or sending data to event hub: %s. Details: %s", | ||
ErrorCodes.COMMON_E2, flussoRendicontazione.getIdentificativoFlusso(), e.getMessage()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[google-java-format] reported by reviewdog 🐶
ErrorCodes.COMMON_E2, flussoRendicontazione.getIdentificativoFlusso(), e.getMessage()); | |
ErrorCodes.COMMON_E2, | |
flussoRendicontazione.getIdentificativoFlusso(), | |
e.getMessage()); |
// Common Errors | ||
COMMON_E1("FDR-E1", "Error while sending to EventHub."), | ||
COMMON_E2("FDR-E2", "Error while process XML Blob."), | ||
// FDR1 Errors | ||
FDR1_E1("FDR1-E1", "Error processing Blob in processFDR1BlobFiles function"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[google-java-format] reported by reviewdog 🐶
// Common Errors | |
COMMON_E1("FDR-E1", "Error while sending to EventHub."), | |
COMMON_E2("FDR-E2", "Error while process XML Blob."), | |
// FDR1 Errors | |
FDR1_E1("FDR1-E1", "Error processing Blob in processFDR1BlobFiles function"); | |
// Common Errors | |
COMMON_E1("FDR-E1", "Error while sending to EventHub."), | |
COMMON_E2("FDR-E2", "Error while process XML Blob."), | |
// FDR1 Errors | |
FDR1_E1("FDR1-E1", "Error processing Blob in processFDR1BlobFiles function"); |
// FDR1 Errors | ||
FDR1_E1("FDR1-E1", "Error processing Blob in processFDR1BlobFiles function"); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[google-java-format] reported by reviewdog 🐶
private final String code; | |
private final String message; | |
private final String code; | ||
private final String message; | ||
|
||
ErrorCodes(String code, String message) { | ||
this.code = code; | ||
this.message = message; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[google-java-format] reported by reviewdog 🐶
private final String code; | |
private final String message; | |
ErrorCodes(String code, String message) { | |
this.code = code; | |
this.message = message; | |
} | |
ErrorCodes(String code, String message) { | |
this.code = code; | |
this.message = message; | |
} |
|
This pull request does not contain a valid label. Please add one of the following labels: |
|
||
import it.gov.pagopa.fdr.to.eventhub.util.ErrorCodes; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[google-java-format] reported by reviewdog 🐶
import it.gov.pagopa.fdr.to.eventhub.util.ErrorCodes; |
"[FDR1] Error processing Blob '%s/%s': %s", | ||
fdr1Container, blobName, e.getMessage())); | ||
"[%s][FDR1] Error processing Blob '%s/%s': %s", | ||
ErrorCodes.FDR1_E1, fdr1Container, blobName, e.getMessage())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[google-java-format] reported by reviewdog 🐶
ErrorCodes.FDR1_E1, fdr1Container, blobName, e.getMessage())); | |
ErrorCodes.FDR1_E1, fdr1Container, blobName, e.getMessage())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
List of Changes
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: