Skip to content
Snippets Groups Projects
Commit ba9c71f3 authored by Zink Hannah's avatar Zink Hannah
Browse files

exceptions

parent 666043c3
No related branches found
No related tags found
1 merge request!29final login and registration process
package hdm.mi.growbros.exceptions;
public class InvalidDataException extends RuntimeException{
public class InvalidDataException extends GrowBrosException{
public InvalidDataException(String message) {
super(message);
}
......
package hdm.mi.growbros.exceptions;
public class InvalidEmailException extends RuntimeException{
import org.springframework.http.HttpStatus;
public class InvalidEmailException extends GrowBrosException{
public InvalidEmailException(String message) {
super(message);
super(HttpStatus.FORBIDDEN, message);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment