custom exception with @ResponseStatus
This commit is contained in:
parent
ebed45b3ef
commit
53201b46ef
@ -0,0 +1,8 @@
|
|||||||
|
package com.baeldung.annotations;
|
||||||
|
|
||||||
|
import org.springframework.http.HttpStatus;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseStatus;
|
||||||
|
|
||||||
|
@ResponseStatus(code = HttpStatus.BAD_REQUEST)
|
||||||
|
public class CustomException extends RuntimeException {
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user