Class DSOutOfServiceException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DSOutOfServiceException
    extends java.lang.Exception
    Reports 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
      ConnectionStatus getConnectionStatus()
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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.