Package io.nats.client
Class AuthenticationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- io.nats.client.AuthenticationException
-
- All Implemented Interfaces:
java.io.Serializable
public class AuthenticationException extends java.io.IOExceptionAuthenticationException is used when the connect process fails due to an authentication problem. The exception will not include the authentication tokens, but as a subclass of IOException allows the client to distinguish an IO problem from an authentication problem.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticationException(java.lang.String errorMessage)Create a new AuthenticationException.
-