1

Implemented Exeption and their handling

This commit is contained in:
Mahgs
2020-03-09 16:18:14 +01:00
parent 72c8d2b9b0
commit b30a4d02f9
7 changed files with 73 additions and 15 deletions

View File

@ -0,0 +1,14 @@
package mops.gruppen2.domain.Exceptions;
public class EventException extends Exception {
private String msg;
public EventException(String msg) {
this.msg = msg;
}
@Override
public String getMessage() {
return msg;
}
}

View File

@ -0,0 +1,7 @@
package mops.gruppen2.domain.Exceptions;
public class UserAlreadyExistsException extends EventException {
public UserAlreadyExistsException(String msg){
super(msg);
}
}

View File

@ -0,0 +1,7 @@
package mops.gruppen2.domain.Exceptions;
public class UserNotFoundException extends EventException{
public UserNotFoundException(String msg){
super(msg);
}
}