File tree Expand file tree Collapse file tree 1 file changed +9
-15
lines changed Expand file tree Collapse file tree 1 file changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -38,21 +38,15 @@ It is intended to be used as a **foundation** for other libraries or application
3838import io.github.malczuuu.problem4j.core.Problem ;
3939import io.github.malczuuu.problem4j.core.ProblemException ;
4040
41- public class ExampleClass {
42-
43- public void method () {
44- Problem problem =
45- Problem . builder()
46- .type(" https://example.com/errors/invalid-request" )
47- .title(" Invalid Request" )
48- .status(400 )
49- .detail(" not a valid json" )
50- .instance(" https://example.com/instances/1234" )
51- .build();
52-
53- throw new ProblemException (problem);
54- }
55- }
41+ Problem problem =
42+ Problem . builder()
43+ .type(" https://example.com/errors/invalid-request" )
44+ .title(" Invalid Request" )
45+ .status(400 )
46+ .detail(" not a valid json" )
47+ .instance(" https://example.com/instances/1234" )
48+ .build();
49+ throw new ProblemException (problem);
5650```
5751
5852## Usage
You can’t perform that action at this time.
0 commit comments