Class ServiceException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ServiceException
    extends DSOutOfServiceException
    Reports an error occurred while trying to access the OMERO service. Such an error can occur in the following case: broken connection, expired session or not logged in.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ServiceException​(java.lang.String message, java.lang.Throwable cause, ConnectionStatus connectionStatus)
      Constructs a new exception with the specified cause and a generic message.
      ServiceException​(java.lang.String message, DSOutOfServiceException cause)
      Constructs a new exception with the specified cause and a generic message.
      ServiceException​(java.lang.Throwable cause, ConnectionStatus connectionStatus)
      Constructs a new exception with the specified cause and a generic message.
    • Method Summary

      • 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

      • ServiceException

        public ServiceException​(java.lang.String message,
                                java.lang.Throwable cause,
                                ConnectionStatus connectionStatus)
        Constructs a new exception with the specified cause and a generic message.
        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.
      • ServiceException

        public ServiceException​(java.lang.Throwable cause,
                                ConnectionStatus connectionStatus)
        Constructs a new exception with the specified cause and a generic message.
        Parameters:
        cause - The exception that caused this one to be risen.
        connectionStatus - The status of the connection to the server.
      • ServiceException

        public ServiceException​(java.lang.String message,
                                DSOutOfServiceException cause)
        Constructs a new exception with the specified cause and a generic message.
        Parameters:
        message - Short explanation of the problem.
        cause - The exception that caused this one to be risen.