Skip to content

Commit 4cb0216

Browse files
committed
(TP-105) feat: add TooManyRequestsException
1 parent 25fd590 commit 4cb0216

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package kattsyn.dev.rentplace.exceptions;
2+
3+
import org.springframework.http.HttpStatus;
4+
5+
public class TooManyRequestsException extends AppException{
6+
public TooManyRequestsException(String message) {
7+
super(HttpStatus.TOO_MANY_REQUESTS.value(), "TOO_MANY_REQUESTS", message);
8+
}
9+
}

0 commit comments

Comments
 (0)