Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ResponseStatus
- public class CustomErrorType extends RuntimeException{
- private HttpStatus status;
- private String message;
- public CustomErrorType() {
- }
- public CustomErrorType(HttpStatus status, String message) {
- this.status = status;
- this.message = message;
- }
- public HttpStatus getCode() {
- return status;
- }
- public String getMessage() {
- return message;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement