Skip to content

Commit 17dec0b

Browse files
committed
Document Overview
1 parent f16373e commit 17dec0b

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}

src/main/java/ml/anon/resource/ReadAll.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
import java.util.List;
66

77
public interface ReadAll<T> {
8-
List<T> findAll() throws BadRequestException;
8+
List<T> findAll(int page) throws BadRequestException;
99
}

0 commit comments

Comments
 (0)