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 committed Nov 15, 2022
1 parent 9457ed3 commit 10f4ad1
Showing 1 changed file with 2 additions and 2 deletions.
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.