Skip to content

Commit

Permalink
Assert fixed in DefaultErrorResponseBuilder
Browse files Browse the repository at this point in the history
Fixed assert on wrong constructor fields
  • Loading branch information
ophiuhus authored Nov 15, 2022
1 parent 9457ed3 commit 10f4ad1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ final class DefaultErrorResponseBuilder implements ErrorResponse.Builder {

DefaultErrorResponseBuilder(Throwable ex, HttpStatusCode statusCode, String detail) {
Assert.notNull(ex, "Throwable is required");
Assert.notNull(ex, "HttpStatusCode is required");
Assert.notNull(ex, "`detail` is required");
Assert.notNull(statusCode, "HttpStatusCode is required");
Assert.notNull(detail, "`detail` is required");
this.exception = ex;
this.statusCode = statusCode;
this.problemDetail = ProblemDetail.forStatusAndDetail(statusCode, detail);
Expand Down

0 comments on commit 10f4ad1

Please sign in to comment.