Skip to content

Instantly share code, notes, and snippets.

@benweidig
Created May 16, 2020 16:48
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 benweidig/154023c54193085bc0bfd388181a0d7e to your computer and use it in GitHub Desktop.
Save benweidig/154023c54193085bc0bfd388181a0d7e to your computer and use it in GitHub Desktop.
class CustomerRegistrationException extends Exception {
private final String email;
public CustomerRegistrationException(String email) {
super("Registration failed for " + email);
this.email = email;
}
public String getEmail() {
return this.email;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment