Package omero.gateway.exception
Class DSOutOfServiceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- omero.gateway.exception.DSOutOfServiceException
-
- All Implemented Interfaces:
java.io.Serializable
public class DSOutOfServiceException extends java.lang.ExceptionReports an error occurred while trying to access the OMERO service. Such an error can posted in the following case: broken connection, expired session or not logged in.- Since:
- OME2.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DSOutOfServiceException(java.lang.String message)Constructs a new exception with the specified detail message.DSOutOfServiceException(java.lang.String message, java.lang.Throwable cause)Constructs a new exception with the specified detail message and cause.DSOutOfServiceException(java.lang.String message, java.lang.Throwable cause, ConnectionStatus connectionStatus)Constructs a new exception with the specified detail message and cause.DSOutOfServiceException(java.lang.String message, ConnectionStatus connectionStatus)Constructs a new exception with the specified detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionStatusgetConnectionStatus()Gets theConnectionStatus
-
-
-
Constructor Detail
-
DSOutOfServiceException
public DSOutOfServiceException(java.lang.String message)
Constructs a new exception with the specified detail message.- Parameters:
message- Short explanation of the problem.
-
DSOutOfServiceException
public DSOutOfServiceException(java.lang.String message, ConnectionStatus connectionStatus)Constructs a new exception with the specified detail message.- Parameters:
message- Short explanation of the problem.connectionStatus- The status of the connection to the server
-
DSOutOfServiceException
public DSOutOfServiceException(java.lang.String message, java.lang.Throwable cause)Constructs a new exception with the specified detail message and cause.- Parameters:
message- Short explanation of the problem.cause- The exception that caused this one to be risen.
-
DSOutOfServiceException
public DSOutOfServiceException(java.lang.String message, java.lang.Throwable cause, ConnectionStatus connectionStatus)Constructs a new exception with the specified detail message and cause.- Parameters:
message- Short explanation of the problem.cause- The exception that caused this one to be risen.connectionStatus- The status of the connection to the server.
-
-
Method Detail
-
getConnectionStatus
public ConnectionStatus getConnectionStatus()
Gets theConnectionStatus- Returns:
- See above
-
-