Skip to content

Commit

Permalink
Declare parent Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese authored Jan 8, 2024
1 parent 2929f8e commit f2f860a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public WebhookController(ApplicationProperty applicationProperty) {
* @return
*/
@PostMapping("/webhooks/notifications")
public ResponseEntity<String> webhooks(@RequestBody String json) throws IOException, RuntimeException, SignatureException, Exception {
public ResponseEntity<String> webhooks(@RequestBody String json) throws Exception {
// from JSON string to object
var notificationRequest = NotificationRequest.fromJson(json);

Expand Down Expand Up @@ -161,4 +161,4 @@ private void savePayment(NotificationRequestItem notification) {
public HMACValidator getHmacValidator() {
return new HMACValidator();
}
}
}

0 comments on commit f2f860a

Please sign in to comment.