Class AuthenticationException

All Implemented Interfaces:
Serializable

@Beta public class AuthenticationException extends HandshakeException
This exception is set as a cause of DeploymentException thrown when WebSocketContainer.connectToServer(...) fails because of any of the following:

HandshakeException.getHttpStatusCode() returns always 401.

Author:
Ondrej Kosatka
See Also:
  • Constructor Details

    • AuthenticationException

      public AuthenticationException(String message)
      Constructor.
      Parameters:
      message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.