38. Custom exception classes (#3 Section 5: Custom Exception Handling)

This commit is contained in:
Art
2021-09-06 14:36:09 +03:00
parent 7dfbf686e7
commit a4975ddd82
4 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,7 @@
package net.shyshkin.study.fullstack.supportportal.backend.exception.domain;
public class EmailExistsException extends Exception{
public EmailExistsException(String message) {
super(message);
}
}

View File

@ -0,0 +1,7 @@
package net.shyshkin.study.fullstack.supportportal.backend.exception.domain;
public class EmailNotFoundException extends Exception{
public EmailNotFoundException(String message) {
super(message);
}
}

View File

@ -0,0 +1,7 @@
package net.shyshkin.study.fullstack.supportportal.backend.exception.domain;
public class UserNotFoundException extends Exception{
public UserNotFoundException(String message) {
super(message);
}
}

View File

@ -0,0 +1,7 @@
package net.shyshkin.study.fullstack.supportportal.backend.exception.domain;
public class UsernameExistsException extends Exception{
public UsernameExistsException(String message) {
super(message);
}
}