public class SSOAgentException
extends javax.servlet.ServletException
SSOAgentException class 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.| Constructor and Description |
|---|
SSOAgentException() |
SSOAgentException(String message)
Constructs a SSOAgentException with the specified detail
message.
|
SSOAgentException(String message,
String errorCode)
Creates a
SSOAgentException with the specified
detail message and cause. |
SSOAgentException(String message,
String errorCode,
Throwable cause)
Creates a
SSOAgentException with the specified
detail message and cause. |
SSOAgentException(String message,
Throwable cause)
Creates a
SSOAgentException with the specified
detail message and cause. |
SSOAgentException(Throwable cause)
Creates a
SSOAgentException with the specified cause
and a detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause). |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCode()
Returns a
errorCode for the exception as defined
in SSOAgentConstants.ErrorMessages. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic SSOAgentException()
public SSOAgentException(String message)
message - The detail message.public SSOAgentException(String message, String errorCode)
SSOAgentException with the specified
detail message and cause.message - the detail message (which is saved for later retrieval
by the Throwable.getMessage() method).errorCode - The error code (which is saved for later retrieval by the
getErrorCode() method).public SSOAgentException(Throwable cause)
SSOAgentException with the specified cause
and a detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause).cause - The cause (which is saved for later retrieval by the
Throwable.getCause() method).public SSOAgentException(String message, Throwable cause)
SSOAgentException with the specified
detail message and cause.message - the detail message (which is saved for later retrieval
by the Throwable.getMessage() method).cause - the cause (which is saved for later retrieval by the
Throwable.getCause() method).public SSOAgentException(String message, String errorCode, Throwable cause)
SSOAgentException with the specified
detail message and cause.message - the detail message (which is saved for later retrieval
by the Throwable.getMessage() method).errorCode - The error code (which is saved for later retrieval by the
getErrorCode() method).cause - the cause (which is saved for later retrieval by the
Throwable.getCause() method).public String getErrorCode()
errorCode for the exception as defined
in SSOAgentConstants.ErrorMessages.Copyright © 2023 WSO2. All rights reserved.