├── .gitignore ├── .mvn └── wrapper │ ├── MavenWrapperDownloader.java │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── README.md ├── img └── custom-error-handling.png ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── java │ └── io │ │ └── tpd │ │ └── superheroes │ │ ├── SpringBootRestExceptionsApplication.java │ │ ├── controller │ │ ├── SuperHeroController.java │ │ ├── SuperHeroControllerAdvice.java │ │ └── errors │ │ │ ├── ErrorCode.java │ │ │ ├── SuperHeroAppError.java │ │ │ ├── SuperHeroAppErrorAttributes.java │ │ │ ├── SuperHeroErrorController.java │ │ │ └── WebErrorConfiguration.java │ │ ├── domain │ │ └── SuperHero.java │ │ ├── exceptions │ │ └── NonExistingHeroException.java │ │ └── repository │ │ ├── SuperHeroRepository.java │ │ └── SuperHeroRepositoryImpl.java └── resources │ └── application.properties └── test └── java └── io └── tpd └── springbootrestexceptions └── SpringBootRestExceptionsApplicationTests.java /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/.gitignore -------------------------------------------------------------------------------- /.mvn/wrapper/MavenWrapperDownloader.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/.mvn/wrapper/MavenWrapperDownloader.java -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/README.md -------------------------------------------------------------------------------- /img/custom-error-handling.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/img/custom-error-handling.png -------------------------------------------------------------------------------- /mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/mvnw -------------------------------------------------------------------------------- /mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/mvnw.cmd -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/java/io/tpd/superheroes/SpringBootRestExceptionsApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/src/main/java/io/tpd/superheroes/SpringBootRestExceptionsApplication.java -------------------------------------------------------------------------------- /src/main/java/io/tpd/superheroes/controller/SuperHeroController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/src/main/java/io/tpd/superheroes/controller/SuperHeroController.java -------------------------------------------------------------------------------- /src/main/java/io/tpd/superheroes/controller/SuperHeroControllerAdvice.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/src/main/java/io/tpd/superheroes/controller/SuperHeroControllerAdvice.java -------------------------------------------------------------------------------- /src/main/java/io/tpd/superheroes/controller/errors/ErrorCode.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/src/main/java/io/tpd/superheroes/controller/errors/ErrorCode.java -------------------------------------------------------------------------------- /src/main/java/io/tpd/superheroes/controller/errors/SuperHeroAppError.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/src/main/java/io/tpd/superheroes/controller/errors/SuperHeroAppError.java -------------------------------------------------------------------------------- /src/main/java/io/tpd/superheroes/controller/errors/SuperHeroAppErrorAttributes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/src/main/java/io/tpd/superheroes/controller/errors/SuperHeroAppErrorAttributes.java -------------------------------------------------------------------------------- /src/main/java/io/tpd/superheroes/controller/errors/SuperHeroErrorController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/src/main/java/io/tpd/superheroes/controller/errors/SuperHeroErrorController.java -------------------------------------------------------------------------------- /src/main/java/io/tpd/superheroes/controller/errors/WebErrorConfiguration.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/src/main/java/io/tpd/superheroes/controller/errors/WebErrorConfiguration.java -------------------------------------------------------------------------------- /src/main/java/io/tpd/superheroes/domain/SuperHero.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/src/main/java/io/tpd/superheroes/domain/SuperHero.java -------------------------------------------------------------------------------- /src/main/java/io/tpd/superheroes/exceptions/NonExistingHeroException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/src/main/java/io/tpd/superheroes/exceptions/NonExistingHeroException.java -------------------------------------------------------------------------------- /src/main/java/io/tpd/superheroes/repository/SuperHeroRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/src/main/java/io/tpd/superheroes/repository/SuperHeroRepository.java -------------------------------------------------------------------------------- /src/main/java/io/tpd/superheroes/repository/SuperHeroRepositoryImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/src/main/java/io/tpd/superheroes/repository/SuperHeroRepositoryImpl.java -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/src/main/resources/application.properties -------------------------------------------------------------------------------- /src/test/java/io/tpd/springbootrestexceptions/SpringBootRestExceptionsApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mechero/spring-boot-rest-exceptions/HEAD/src/test/java/io/tpd/springbootrestexceptions/SpringBootRestExceptionsApplicationTests.java --------------------------------------------------------------------------------