Merge pull request #7221 from amit2103/BAEL-14274-22

[BAEL-14274] - Fixed article code for https://www.baeldung.com/buildi
This commit is contained in:
Loredana Crusoveanu 2019-07-20 21:50:10 +03:00 committed by GitHub
commit 2ff2df9be4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,8 @@
package com.baeldung.web.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value = HttpStatus.BAD_REQUEST)
public class BadRequestException extends RuntimeException {
}

View File

@ -0,0 +1,8 @@
package com.baeldung.web.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value = HttpStatus.NOT_FOUND)
public class ResourceNotFoundException extends RuntimeException {
}