GUACAMOLE-504: Add getHttpStatusCode() method to GuacamoleException class.
This commit is contained in:
1 parent
1e1679e5ce
commit
68e101f58a
1 file changed
+10
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user