Skip to content

Instantly share code, notes, and snippets.

@dev-aritra
Created January 17, 2023 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dev-aritra/a3ec34210fa96e57c71eb8433524fea4 to your computer and use it in GitHub Desktop.
Save dev-aritra/a3ec34210fa96e57c71eb8433524fea4 to your computer and use it in GitHub Desktop.
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