File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change
1
+ package ml .anon .exception ;
2
+
3
+ import org .springframework .http .HttpStatus ;
4
+ import org .springframework .web .bind .annotation .ResponseStatus ;
5
+
6
+ @ ResponseStatus (HttpStatus .LOCKED )
7
+ public class LockedException extends RuntimeException {
8
+ }
Original file line number Diff line number Diff line change
1
+ package ml .anon .exception ;
2
+
3
+ import lombok .NoArgsConstructor ;
4
+ import org .springframework .http .HttpStatus ;
5
+ import org .springframework .web .bind .annotation .ResponseStatus ;
6
+
7
+ @ NoArgsConstructor
8
+ @ ResponseStatus (HttpStatus .NOT_FOUND )
9
+ public class NotFoundException extends RuntimeException {
10
+
11
+
12
+ public NotFoundException (String message ) {
13
+ super (message );
14
+ }
15
+ }
Original file line number Diff line number Diff line change 5
5
import java .util .List ;
6
6
7
7
public interface ReadAll <T > {
8
- List <T > findAll () throws BadRequestException ;
8
+ List <T > findAll (int page ) throws BadRequestException ;
9
9
}
You can’t perform that action at this time.
0 commit comments