custom exception with @ResponseStatus

This commit is contained in:
fanatixan 2018-06-29 14:48:22 +02:00
parent ebed45b3ef
commit 53201b46ef
1 changed files with 8 additions and 0 deletions

View File

@ -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 {
}