Package org.kuali.rice.krad.exception
Class AuthorizationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.kuali.rice.core.api.exception.KualiException
org.kuali.rice.krad.exception.AuthorizationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DocumentAuthorizationException,DocumentTypeAuthorizationException
public class AuthorizationException
extends org.kuali.rice.core.api.exception.KualiException
Represents an exception that is thrown when a given user is not authorized to take the given action on the given
target type
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAuthorizationException(String userId, String action, String targetType) AuthorizationException(String userId, String action, String targetType, String message, Map<String, Object> additionalDetails) Allows you to construct the exception message manuallyAuthorizationException(String userId, String action, String targetType, Map<String, Object> additionalDetails) Constructs a exception with a message from the passed in information. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Methods inherited from class org.kuali.rice.core.api.exception.KualiException
isHideIncidentReport, setHideIncidentReportMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
userId
-
action
-
targetType
-
additionalDetails
-
-
Constructor Details
-
AuthorizationException
-
AuthorizationException
public AuthorizationException(String userId, String action, String targetType, Map<String, Object> additionalDetails) Constructs a exception with a message from the passed in information.- Parameters:
userId- the userid of the user who failed authorizationaction- the action the user was trying to taketargetType- what the user was trying to take action onadditionalDetails- additional details about the authorization failure to be passed in and added to the exception message (ex: permission name, qualifiers, etc.)
-
AuthorizationException
public AuthorizationException(String userId, String action, String targetType, String message, Map<String, Object> additionalDetails) Allows you to construct the exception message manually
-
-
Method Details
-
getUserId
-
getAction
-
getTargetType
-
getAdditionalDetails
-
getErrorMessageKey
Deprecated.- Returns:
- message key used by Struts to select the error message to be displayed
-