File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -41,19 +41,21 @@ import io.github.malczuuu.problem4j.Problem;
4141import io.github.malczuuu.problem4j.ProblemException ;
4242
4343public class Class {
44- public void method () {
45- Problem problem =
46- Problem . builder()
47- .type(" https://example.com/errors/invalid-request" )
48- .title(" Invalid Request" )
49- .status(400 )
50- .detail(" not a valid json" )
51- .instance(" https://example.com/instances/1234" )
52- .build();
53-
54- throw new ProblemException (problem);
55- }
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+ }
5657}
58+
5759```
5860
5961## Usage
You can’t perform that action at this time.
0 commit comments