@@ -114,27 +114,19 @@ compatible down to `3.0.0`. Integration with Spring Boot 4 (once its released) w
114114 }
115115 ```
116116
117- Overriding of build-in exceptions is performed by custom [ ` ExceptionMapping ` ] [ ExceptionMapping ] and its implementations.
118- These mappings are instantiated in [ ` ExceptionMappingConfiguration ` ] [ ExceptionMappingConfiguration ] with
119- ` @ConditionalOnClass ` , per appropriate exception. Therefore, if using this library with previous versions, mappings for
120- exception classes that are not present in classpath are silently ignored.
121-
122- Details on what exception responses are overwritten are located following ` README.md ` files:
123-
124- - [ ` problem4j-spring-web/README.md ` ] [ problem4j-spring-web-readme ] ,
125- - [ ` problem4j-spring-webflux/README.md ` ] [ problem4j-spring-webflux-readme ] ,
126- - [ ` problem4j-spring-webmvc/README.md ` ] [ problem4j-spring-webmvc-readme ] .
117+ Details on library usability can be found in [ ` problem4j-spring-web/README.md ` ] [ problem4j-spring-web-readme ] .
127118
128119While creating your own ` @RestControllerAdvice ` , make sure to position it with right ` @Order ` . In order for your custom
129120implementation to work seamlessly, make sure to position it on at least ** ` Ordered.LOWEST_PRECEDENCE - 1 ` ** (the lower
130121the value, the higher the priority), as ** ` ExceptionAdvice ` ** covers the most generic ** ` Exception ` ** class.
131122
132- | ` @RestControllerAdvice ` | covered exceptions | ` @Order(...) ` |
133- | --------------------------------------| --------------------------------| ----------------------------------|
134- | ` ProblemEnhancedExceptionHandler ` | Spring's internal exceptions | ` Ordered.LOWEST_PRECEDENCE - 10 ` |
135- | ` ProblemExceptionAdvice ` | ` ProblemException ` | ` Ordered.LOWEST_PRECEDENCE - 10 ` |
136- | ` ConstraintViolationExceptionAdvice ` | ` ConstraintViolationException ` | ` Ordered.LOWEST_PRECEDENCE - 10 ` |
137- | ` ExceptionAdvice ` | ` Exception ` | ` Ordered.LOWEST_PRECEDENCE ` |
123+ | <center >covered exceptions</center > | <center >` @Order(...) ` </center > |
124+ | -------------------------------------| ----------------------------------|
125+ | Spring's internal exceptions | ` Ordered.LOWEST_PRECEDENCE - 10 ` |
126+ | ` ConstraintViolationException ` | ` Ordered.LOWEST_PRECEDENCE - 10 ` |
127+ | ` DecodingException ` | ` Ordered.LOWEST_PRECEDENCE - 10 ` |
128+ | ` ProblemException ` | ` Ordered.LOWEST_PRECEDENCE - 10 ` |
129+ | ` Exception ` | ` Ordered.LOWEST_PRECEDENCE ` |
138130
139131## Configuration
140132
@@ -150,25 +142,17 @@ library and your application.
150142
151143- [ ` problem4j-core ` ] [ problem4j-core ] - Core library defining ` Problem ` model and ` ProblemException ` .
152144- [ ` problem4j-jackson ` ] [ problem4j-jackson ] - Jackson module for serializing and deserializing ` Problem ` objects.
153- - [ ` problem4j-spring ` ] [ problem4j-spring ] - Spring Web module extending ` ResponseEntityExceptionHandler ` for
154- handling exceptions and returning ` Problem ` responses.
155-
156- [ ExceptionMapping ] : problem4j-spring-web/src/main/java/io/github/malczuuu/problem4j/spring/web/mapping/ExceptionMapping.java
157-
158- [ ExceptionMappingConfiguration ] : problem4j-spring-web/src/main/java/io/github/malczuuu/problem4j/spring/web/mapping/ExceptionMappingConfiguration.java
159-
160- [ problem4j-spring-web-readme ] : problem4j-spring-web/README.md
161-
162- [ problem4j-spring-webflux-readme ] : problem4j-spring-webflux/README.md
163-
164- [ problem4j-spring-webmvc-readme ] : problem4j-spring-webmvc/README.md
145+ - [ ` problem4j-spring ` ] [ problem4j-spring ] - Spring modules extending ` ResponseEntityExceptionHandler ` for handling
146+ exceptions and returning ` Problem ` responses.
165147
166148[ maven-central ] : https://central.sonatype.com/artifact/io.github.malczuuu.problem4j/problem4j-spring-bom
167149
168150[ problem4j-core ] : https://github.com/malczuuu/problem4j-core
169151
170152[ problem4j-spring ] : https://github.com/malczuuu/problem4j-spring
171153
154+ [ problem4j-spring-web-readme ] : problem4j-spring-web/README.md
155+
172156[ problem4j-jackson ] : https://github.com/malczuuu/problem4j-jackson
173157
174158[ rfc7807 ] : https://datatracker.ietf.org/doc/html/rfc7807
0 commit comments