GUAC-547: Associate a GuacamoleStatus with all GuacamoleExceptions.

This commit is contained in:
Michael Jumper
2014-03-18 16:41:22 -07:00
parent 4f3f55d0e0
commit ac288916b8
4 changed files with 35 additions and 1 deletions

View File

@@ -22,6 +22,8 @@
package org.glyptodon.guacamole;
import org.glyptodon.guacamole.protocol.GuacamoleStatus;
/**
* A security-related exception thrown when parts of the Guacamole API is
@@ -61,4 +63,9 @@ public class GuacamoleSecurityException extends GuacamoleClientException {
super(cause);
}
@Override
public GuacamoleStatus getStatus() {
return GuacamoleStatus.CLIENT_FORBIDDEN;
}
}