public class AccessDeniedException extends SecurityException
Constructor and Description |
---|
AccessDeniedException(Set<SecurityViolation> violations,
Class<? extends ViewConfig> errorView)
Constructor for creating the exception for the given violations and error-view
|
Modifier and Type | Method and Description |
---|---|
Class<? extends ViewConfig> |
getErrorView()
Optional page which should be used as error-page
|
Set<SecurityViolation> |
getViolations()
All
SecurityViolation which were found by a AccessDecisionVoter |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AccessDeniedException(Set<SecurityViolation> violations, Class<? extends ViewConfig> errorView)
violations
- current violationserrorView
- optional inline error-viewpublic Set<SecurityViolation> getViolations()
SecurityViolation
which were found by a AccessDecisionVoter
public Class<? extends ViewConfig> getErrorView()
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.