mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-547: Define status for server exception - avoid future problems when generic error status changes.
This commit is contained in:
@@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
package org.glyptodon.guacamole;
|
package org.glyptodon.guacamole;
|
||||||
|
|
||||||
|
import org.glyptodon.guacamole.protocol.GuacamoleStatus;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A generic exception thrown when part of the Guacamole API encounters
|
* A generic exception thrown when part of the Guacamole API encounters
|
||||||
@@ -33,7 +35,7 @@ package org.glyptodon.guacamole;
|
|||||||
public class GuacamoleServerException extends GuacamoleException {
|
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
|
* @param message A human readable description of the exception that
|
||||||
* occurred.
|
* 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
|
* @param message A human readable description of the exception that
|
||||||
* occurred.
|
* 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.
|
* @param cause The cause of this exception.
|
||||||
*/
|
*/
|
||||||
@@ -62,4 +64,9 @@ public class GuacamoleServerException extends GuacamoleException {
|
|||||||
super(cause);
|
super(cause);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GuacamoleStatus getStatus() {
|
||||||
|
return GuacamoleStatus.SERVER_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user