Skip to content

Commit 53201b4

Browse files
committed
custom exception with @ResponseStatus
1 parent ebed45b commit 53201b4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.baeldung.annotations;
2+
3+
import org.springframework.http.HttpStatus;
4+
import org.springframework.web.bind.annotation.ResponseStatus;
5+
6+
@ResponseStatus(code = HttpStatus.BAD_REQUEST)
7+
public class CustomException extends RuntimeException {
8+
}

0 commit comments

Comments
 (0)