File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
spring-web/src/main/java/org/springframework/web/server Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2020 the original author or authors.
2
+ * Copyright 2002-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -47,7 +47,7 @@ public class ResponseStatusException extends NestedRuntimeException {
47
47
* @param status the HTTP status (required)
48
48
*/
49
49
public ResponseStatusException (HttpStatus status ) {
50
- this (status , null , null );
50
+ this (status , null );
51
51
}
52
52
53
53
/**
@@ -57,7 +57,10 @@ public ResponseStatusException(HttpStatus status) {
57
57
* @param reason the associated reason (optional)
58
58
*/
59
59
public ResponseStatusException (HttpStatus status , @ Nullable String reason ) {
60
- this (status , reason , null );
60
+ super ("" );
61
+ Assert .notNull (status , "HttpStatus is required" );
62
+ this .status = status ;
63
+ this .reason = reason ;
61
64
}
62
65
63
66
/**
You can’t perform that action at this time.
0 commit comments