Created
January 17, 2023 05:37
-
-
Save dev-aritra/a3ec34210fa96e57c71eb8433524fea4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void handle(Message<String> message) | |
throws RetryableException, DroppableException, DlqableException { | |
try { | |
doStuff(message); | |
} catch (IllegalArgumentException ex) { | |
throw new DlqableException(ex); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment