mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-504: Add getHttpStatusCode() method to GuacamoleException class.
This commit is contained in:
@@ -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();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user