Class SSOAgentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javax.servlet.ServletException
-
- io.asgardeo.java.oidc.sdk.exception.SSOAgentException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SSOAgentClientException,SSOAgentServerException
public class SSOAgentException extends javax.servlet.ServletExceptionTheSSOAgentExceptionclass is a generic OIDC SDK exception class that provides type safety for all the SDK-related exception classes that extend from it. It is an implementation of the base class,ServletException.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SSOAgentException()SSOAgentException(String message)Constructs a SSOAgentException with the specified detail message.SSOAgentException(String message, String errorCode)Creates aSSOAgentExceptionwith the specified detail message and cause.SSOAgentException(String message, String errorCode, Throwable cause)Creates aSSOAgentExceptionwith the specified detail message and cause.SSOAgentException(String message, Throwable cause)Creates aSSOAgentExceptionwith the specified detail message and cause.SSOAgentException(Throwable cause)Creates aSSOAgentExceptionwith the specified cause and a detail message of(cause==null ? null : cause.toString())(which typically contains the class and detail message ofcause).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()Returns aerrorCodefor the exception as defined inSSOAgentConstants.ErrorMessages.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
SSOAgentException
public SSOAgentException()
-
SSOAgentException
public SSOAgentException(String message)
Constructs a SSOAgentException with the specified detail message. A detail message is a String that describes this particular exception.- Parameters:
message- The detail message.
-
SSOAgentException
public SSOAgentException(String message, String errorCode)
Creates aSSOAgentExceptionwith the specified detail message and cause.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method).errorCode- The error code (which is saved for later retrieval by thegetErrorCode()method).
-
SSOAgentException
public SSOAgentException(Throwable cause)
Creates aSSOAgentExceptionwith the specified cause and a detail message of(cause==null ? null : cause.toString())(which typically contains the class and detail message ofcause).- Parameters:
cause- The cause (which is saved for later retrieval by theThrowable.getCause()method).
-
SSOAgentException
public SSOAgentException(String message, Throwable cause)
Creates aSSOAgentExceptionwith the specified detail message and cause.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method).cause- the cause (which is saved for later retrieval by theThrowable.getCause()method).
-
SSOAgentException
public SSOAgentException(String message, String errorCode, Throwable cause)
Creates aSSOAgentExceptionwith the specified detail message and cause.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method).errorCode- The error code (which is saved for later retrieval by thegetErrorCode()method).cause- the cause (which is saved for later retrieval by theThrowable.getCause()method).
-
-
Method Detail
-
getErrorCode
public String getErrorCode()
Returns aerrorCodefor the exception as defined inSSOAgentConstants.ErrorMessages.
-
-