public class UserAccessDeniedException extends RuntimeException implements WithErrorResponse
Constructor and Description |
---|
UserAccessDeniedException() |
UserAccessDeniedException(String message)
Initializes the exception by delegating the message to the super constructor.
|
UserAccessDeniedException(String message,
Throwable cause)
Initializes the exception by delegating the message and the causing exception to the super constructor.
|
UserAccessDeniedException(Throwable cause)
Initializes the exception by delegating the causing exception to the super constructor.
|
Modifier and Type | Method and Description |
---|---|
ResponseWithErrorCode |
getErrorResponse()
Gets the response containing an HTTP error code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UserAccessDeniedException(String message)
message
- The exception message.public UserAccessDeniedException(Throwable cause)
cause
- The exception that caused the exception to be created.public UserAccessDeniedException(String message, Throwable cause)
message
- The exception message.cause
- The exception that caused the exception to be created.public UserAccessDeniedException()
@Nonnull public ResponseWithErrorCode getErrorResponse()
WithErrorResponse
getErrorResponse
in interface WithErrorResponse
Copyright © 2019 SAP SE. All rights reserved.