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

@@ -68,5 +68,15 @@ public class GuacamoleException extends Exception {
public GuacamoleStatus getStatus() {
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();
}
}