File tree Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -41,19 +41,19 @@ import io.github.malczuuu.problem4j.Problem;
4141import io.github.malczuuu.problem4j.ProblemException ;
4242
4343public class Class {
44-
45- public void method () {
46- Problem problem =
47- Problem . builder()
48- .type(" https://example.com/errors/invalid-request" )
49- .title(" Invalid Request" )
50- .status(400 )
51- .detail(" not a valid json" )
52- .instance(" https://example.com/instances/1234" )
53- .build();
54-
55- throw new ProblemException (problem);
56- }
44+
45+ public void method () {
46+ Problem problem =
47+ Problem . builder()
48+ .type(" https://example.com/errors/invalid-request" )
49+ .title(" Invalid Request" )
50+ .status(400 )
51+ .detail(" not a valid json" )
52+ .instance(" https://example.com/instances/1234" )
53+ .build();
54+
55+ throw new ProblemException (problem);
56+ }
5757}
5858```
5959
@@ -91,8 +91,7 @@ manager.
9191
9292## Other Libraries
9393
94- - [`problem4j-jackson`][problem4j-spring-web] - Jackson module for serializing and deserializing `Problem`.
95- objects.
94+ - [`problem4j-jackson`][problem4j-jackson] - Jackson module for serializing and deserializing `Problem` objects.
9695- [`problem4j-spring-web`][problem4j-spring-web] - Spring Web module extending `ResponseEntityExceptionHandler` for
9796 handling exceptions and returning `Problem` responses.
9897
You can’t perform that action at this time.
0 commit comments