Created
May 16, 2020 16:48
-
-
Save benweidig/154023c54193085bc0bfd388181a0d7e 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
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