GUACAMOLE-504: Add getHttpStatusCode() method to GuacamoleException class.

This commit is contained in:
Nick Couchman
2018-02-07 22:57:21 -05:00
parent 1e1679e5ce
commit 68e101f58a

View File

@@ -69,4 +69,14 @@ public class GuacamoleException extends Exception {
return GuacamoleStatus.SERVER_ERROR; return GuacamoleStatus.SERVER_ERROR;
} }
/**
* Returns the numeric HTTP status code associated with this exception.
*
* @return
* The numeric HTTP status code associated with this exception.
*/
public Integer getHttpStatusCode() {
return getStatus().getHttpStatusCode();
}
} }