Skip to content

Commit df52d85

Browse files
committed
Simplify hierarchy for exceptions.
1 parent a21f635 commit df52d85

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/github/hrytsenko/jsondata/springboot/error/ServiceException.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public BadRequest(String code, Throwable cause) {
4545

4646
}
4747

48-
public static class Unauthorized extends BadRequest {
48+
public static class Unauthorized extends ServiceException {
4949

5050
public Unauthorized() {
5151
this(null);
@@ -57,7 +57,7 @@ public Unauthorized(Throwable cause) {
5757

5858
}
5959

60-
public static class Forbidden extends BadRequest {
60+
public static class Forbidden extends ServiceException {
6161

6262
public Forbidden() {
6363
this(null);
@@ -69,7 +69,7 @@ public Forbidden(Throwable cause) {
6969

7070
}
7171

72-
public static class NotFound extends BadRequest {
72+
public static class NotFound extends ServiceException {
7373

7474
public NotFound() {
7575
this(null);

0 commit comments

Comments
 (0)