Class DisconnectException

All Implemented Interfaces:
Serializable, LocalizableException

public final class DisconnectException extends OpenDsException
A disconnect exception is thrown in order to indicate that an accepted connection has been rejected and must be disconnected immediately. This may happen when the server is locked down or an administrative limit has been reached.
See Also:
  • Constructor Details

    • DisconnectException

      public DisconnectException(DisconnectReason reason, LocalizableMessage message)
      Creates a new initialization exception with the provided message.
      Parameters:
      reason - The reason for disconnecting the client.
      message - The message that explains the problem that occurred.
  • Method Details

    • getDisconnectReason

      public DisconnectReason getDisconnectReason()
      Returns the reason for disconnecting the client.
      Returns:
      The reason for disconnecting the client.
    • fillInStackTrace

      public Throwable fillInStackTrace()
      Prevent costly stack traces from being created because they are not useful for this type of exception.
      Overrides:
      fillInStackTrace in class Throwable