public final class AccessExceptionContext extends Object
AccessException.| Modifier and Type | Method and Description |
|---|---|
AccessExceptionContext |
cause(Throwable cause)
Sets the
AccessException cause. |
static AccessExceptionContext |
create(HttpStatus status)
Creates a new
AccessExceptionContext with a specific HTTP response status. |
AccessExceptionContext |
errorDescription(LocalizedMessage message)
Sets the localized error description.
|
AccessExceptionContext |
exceptionMessage(String exceptionMessage)
Sets the
AccessException message (for logging purposes). |
public AccessExceptionContext errorDescription(LocalizedMessage message)
message - the localized error description (optional, may be null)AccessException.getErrorMessage()public AccessExceptionContext exceptionMessage(String exceptionMessage)
AccessException message (for logging purposes).
If not explicitly specified, the non-localized status message (HttpStatus.getMessage() will be used for
the exception message.
exceptionMessage - the exception message (optional, may be null)public AccessExceptionContext cause(Throwable cause)
AccessException cause.cause - the cause of the exception (optional, may be null)public static AccessExceptionContext create(HttpStatus status)
AccessExceptionContext with a specific HTTP response status.status - the HTTP response status; see AccessException.getErrorStatus()AccessExceptionContextCopyright 2023 Ping Identity Corp. All rights reserved.