Skip to content

Instantly share code, notes, and snippets.

@benweidig
Created May 16, 2020 16:47
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/ff754ff69c509c9cf188a022c764fa47 to your computer and use it in GitHub Desktop.
Save benweidig/ff754ff69c509c9cf188a022c764fa47 to your computer and use it in GitHub Desktop.
public class ValidationException extends Exception {
private final String field;
public ValidationException(String field,
String message,
Throwable cause) {
super(message, cause);
this.field = field;
}
public String getField() {
return this.field;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment