Skip to content

Commit fdd320b

Browse files
committed
Update README.md
1 parent 33fdc28 commit fdd320b

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,21 @@ import io.github.malczuuu.problem4j.Problem;
4141
import io.github.malczuuu.problem4j.ProblemException;
4242

4343
public 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

0 commit comments

Comments
 (0)