Created
October 22, 2011 22:20
-
-
Save eugenp/1306557 to your computer and use it in GitHub Desktop.
Bootstraping a web application with Spring 3.1 and Java based Configuration, part 2 - the exceptions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ResponseStatus( value = HttpStatus.BAD_REQUEST ) | |
public final class BadRequestException extends RuntimeException{ | |
// | |
} | |
@ResponseStatus( value = HttpStatus.NOT_FOUND ) | |
public final class ResourceNotFoundException extends RuntimeException{ | |
// | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gist is used in:
http://www.baeldung.com/2011/10/25/building-a-restful-web-service-with-spring-3-1-and-java-based-configuration-part-2/