GUAC-547: Define status for server exception - avoid future problems when generic error status changes.

This commit is contained in:
Michael Jumper
2014-03-18 16:54:04 -07:00
parent ac288916b8
commit 494e611008

View File

@@ -22,6 +22,8 @@
package org.glyptodon.guacamole;
import org.glyptodon.guacamole.protocol.GuacamoleStatus;
/**
* A generic exception thrown when part of the Guacamole API encounters
@@ -33,7 +35,7 @@ package org.glyptodon.guacamole;
public class GuacamoleServerException extends GuacamoleException {
/**
* Creates a new GuacamoleException with the given message and cause.
* Creates a new GuacamoleServerException with the given message and cause.
*
* @param message A human readable description of the exception that
* occurred.
@@ -44,7 +46,7 @@ public class GuacamoleServerException extends GuacamoleException {
}
/**
* Creates a new GuacamoleException with the given message.
* Creates a new GuacamoleServerException with the given message.
*
* @param message A human readable description of the exception that
* occurred.
@@ -54,7 +56,7 @@ public class GuacamoleServerException extends GuacamoleException {
}
/**
* Creates a new GuacamoleException with the given cause.
* Creates a new GuacamoleServerException with the given cause.
*
* @param cause The cause of this exception.
*/
@@ -62,4 +64,9 @@ public class GuacamoleServerException extends GuacamoleException {
super(cause);
}
@Override
public GuacamoleStatus getStatus() {
return GuacamoleStatus.SERVER_ERROR;
}
}