Class ScramServerErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ongres.scram.common.exception.ScramException
com.ongres.scram.common.exception.ScramServerErrorException
- All Implemented Interfaces:
Serializable
This class specifies an error that occurred during authentication exchange in a
server-final-message
.
It is sent by the server in its server-final-message
and can help diagnose the reason
for the authentication exchange failure.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
private final String
server-error-value
. -
Constructor Summary
ConstructorsConstructorDescriptionScramServerErrorException
(String serverError) Constructs a new instance of ScramServerErrorException with a detailed message.ScramServerErrorException
(String serverError, Throwable ex) Constructs a new instance of ScramServerErrorException with a detailed message and a root cause. -
Method Summary
Modifier and TypeMethodDescriptionReturn the "e=" server-error-value from the server-final-message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
serverError
server-error-value
.
-
-
Constructor Details
-
ScramServerErrorException
Constructs a new instance of ScramServerErrorException with a detailed message.- Parameters:
serverError
- The SCRAM error in the message
-
ScramServerErrorException
Constructs a new instance of ScramServerErrorException with a detailed message and a root cause.- Parameters:
serverError
- The SCRAM error in the messageex
- The root exception
-
-
Method Details
-
getServerError
Return the "e=" server-error-value from the server-final-message.- Returns:
- the error type returned in the server-final-message
-