Package com.sun.identity.saml2.profile
Class ServerFaultException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sun.identity.saml2.profile.FederatedSSOException
-
- com.sun.identity.saml2.profile.ServerFaultException
-
- All Implemented Interfaces:
Serializable
public class ServerFaultException extends FederatedSSOException
Indicates a server fault occurred during federated SSO.- Since:
- 13.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServerFaultException(SAML2IdentityProviderAdapter idpAdapter, String messageCode)Constructs the server fault exception with the given IDP adapter and message code.ServerFaultException(SAML2IdentityProviderAdapter idpAdapter, String messageCode, String detail)Constructs the client fault exception with the given IDP adapter, message code, and detail message.ServerFaultException(String messageCode)Constructs the server fault exception with the given message code.ServerFaultException(String messageCode, String detail)Constructs the server fault exception with the given message code and detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFaultCode()The SOAP fault code of the error.-
Methods inherited from class com.sun.identity.saml2.profile.FederatedSSOException
getDetail, getIdpAdapter, getMessage, getMessageCode
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ServerFaultException
public ServerFaultException(String messageCode)
Constructs the server fault exception with the given message code.- Parameters:
messageCode- the message code. May not be null.
-
ServerFaultException
public ServerFaultException(String messageCode, String detail)
Constructs the server fault exception with the given message code and detail message.- Parameters:
messageCode- the message code. May not be null.detail- the detail message. May be null.
-
ServerFaultException
public ServerFaultException(SAML2IdentityProviderAdapter idpAdapter, String messageCode)
Constructs the server fault exception with the given IDP adapter and message code.- Parameters:
idpAdapter- the identity provider adapter. May be null.messageCode- the message code. May not be null.
-
ServerFaultException
public ServerFaultException(SAML2IdentityProviderAdapter idpAdapter, String messageCode, String detail)
Constructs the client fault exception with the given IDP adapter, message code, and detail message.- Parameters:
idpAdapter- the identity provider adapter. May be null.messageCode- the message code. May not be null.detail- the detail message. May be null.
-
-
Method Detail
-
getFaultCode
public String getFaultCode()
Description copied from class:FederatedSSOExceptionThe SOAP fault code of the error.- Specified by:
getFaultCodein classFederatedSSOException- Returns:
- one of
SAML2Constants.SERVER_FAULTorSAML2Constants.CLIENT_FAULT. Never null.
-
-