Refactored Exceptions to be Uncaught (#4)

This commit is contained in:
Art
2021-09-07 10:13:24 +03:00
parent 68ea97e0e0
commit 066d72bdcd
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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