GUAC-547: Associate a GuacamoleStatus with all GuacamoleExceptions.
This commit is contained in:
1 parent
4f3f55d0e0
commit
ac288916b8
4 files changed
+35
-1
No files matched your search
+7
@@ -22,6 +22,8 @@
|
||||
|
||||
package org.glyptodon.guacamole;
|
||||
|
||||
import org.glyptodon.guacamole.protocol.GuacamoleStatus;
|
||||
|
||||
|
||||
/**
|
||||
* A generic exception thrown when part of the Guacamole API fails to find
|
||||
@@ -62,4 +64,9 @@ public class GuacamoleResourceNotFoundException extends GuacamoleClientException
|
||||
super(cause);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GuacamoleStatus getStatus() {
|
||||
return GuacamoleStatus.RESOURCE_NOT_FOUND;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user