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:
commit
2ff2df9be4
|
@ -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 {
|
||||
}
|
|
@ -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 {
|
||||
}
|
Loading…
Reference in New Issue