Refactored Exceptions to be Uncaught (#4)
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
package net.shyshkin.study.fullstack.supportportal.backend.exception.domain;
|
package net.shyshkin.study.fullstack.supportportal.backend.exception.domain;
|
||||||
|
|
||||||
public class EmailExistsException extends Exception{
|
public class EmailExistsException extends RuntimeException {
|
||||||
public EmailExistsException(String message) {
|
public EmailExistsException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
package net.shyshkin.study.fullstack.supportportal.backend.exception.domain;
|
package net.shyshkin.study.fullstack.supportportal.backend.exception.domain;
|
||||||
|
|
||||||
public class EmailNotFoundException extends Exception{
|
public class EmailNotFoundException extends RuntimeException {
|
||||||
public EmailNotFoundException(String message) {
|
public EmailNotFoundException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
package net.shyshkin.study.fullstack.supportportal.backend.exception.domain;
|
package net.shyshkin.study.fullstack.supportportal.backend.exception.domain;
|
||||||
|
|
||||||
public class UserNotFoundException extends Exception{
|
public class UserNotFoundException extends RuntimeException {
|
||||||
public UserNotFoundException(String message) {
|
public UserNotFoundException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
package net.shyshkin.study.fullstack.supportportal.backend.exception.domain;
|
package net.shyshkin.study.fullstack.supportportal.backend.exception.domain;
|
||||||
|
|
||||||
public class UsernameExistsException extends Exception{
|
public class UsernameExistsException extends RuntimeException {
|
||||||
public UsernameExistsException(String message) {
|
public UsernameExistsException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user