mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 23:21:21 +00:00
GUAC-547: Associate a GuacamoleStatus with all GuacamoleExceptions.
This commit is contained in:
@@ -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