Add Javadoc to MockHttpServletResponse#getErrorMessage

Closes gh-31386
This commit is contained in:
Brian Clozel 2023-11-24 14:41:36 +01:00
parent 655b4aacb7
commit b2757d9a21
1 changed files with 3 additions and 0 deletions

View File

@ -780,6 +780,9 @@ public class MockHttpServletResponse implements HttpServletResponse {
return this.status;
}
/**
* Return the error message used when calling {@link HttpServletResponse#sendError(int, String)}.
*/
@Nullable
public String getErrorMessage() {
return this.errorMessage;