Class SaslSystemException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
javax.security.sasl.SaslException
org.apache.qpid.protonj2.engine.sasl.SaslSystemException
- All Implemented Interfaces:
Serializable
Indicates that a SASL handshake has failed with a
sys
,
sys-perm
, or sys-temp
outcome code as defined by
AMQP Version 1.0, Section 5.3.3.6.- See Also:
-
Constructor Summary
ConstructorDescriptionSaslSystemException
(boolean permanent) Creates an exception indicating a system error.SaslSystemException
(boolean permanent, String detail) Creates an exception indicating a system error with a detail message. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Checks if the condition that caused this exception is of a permanent nature.Methods inherited from class javax.security.sasl.SaslException
getCause, initCause, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
SaslSystemException
public SaslSystemException(boolean permanent) Creates an exception indicating a system error.- Parameters:
permanent
-true
if the error is permanent and requires (manual) intervention
-
SaslSystemException
Creates an exception indicating a system error with a detail message.- Parameters:
permanent
-true
if the error is permanent and requires (manual) intervention.detail
- A message providing details about the cause of the problem.
-
-
Method Details
-
isPermanent
public final boolean isPermanent()Checks if the condition that caused this exception is of a permanent nature.A permanent error should be treated as terminal for transports that implement reconnection logic and the implementation should stop attempting connections.
- Returns:
true
if the error condition is permanent.
-