@ -0,0 +1,15 @@
|
||||
package mops.gruppen2.domain.exception;
|
||||
|
||||
public class EventException extends Exception {
|
||||
|
||||
private String msg;
|
||||
|
||||
public EventException(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return msg;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
package mops.gruppen2.domain.exception;
|
||||
|
||||
public class UserAlreadyExistsException extends EventException {
|
||||
|
||||
public UserAlreadyExistsException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
package mops.gruppen2.domain.exception;
|
||||
|
||||
public class UserNotFoundException extends EventException {
|
||||
|
||||
public UserNotFoundException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user