SEC-1136: Converted base exceptions to extend RuntimeException rather than NestedRuntimeException.
This commit is contained in:
@@ -15,16 +15,14 @@
|
||||
|
||||
package org.springframework.security.access;
|
||||
|
||||
import org.springframework.core.NestedRuntimeException;
|
||||
import org.springframework.security.core.Authentication;
|
||||
|
||||
/**
|
||||
* Thrown if an {@link Authentication} object does not hold a required authority.
|
||||
* Thrown if an {@link org.springframework.security.core.Authentication Authentication} object does not hold a
|
||||
* required authority.
|
||||
*
|
||||
* @author Ben Alex
|
||||
* @version $Id$
|
||||
*/
|
||||
public class AccessDeniedException extends NestedRuntimeException {
|
||||
public class AccessDeniedException extends RuntimeException {
|
||||
//~ Constructors ===================================================================================================
|
||||
|
||||
/**
|
||||
|
||||
@@ -15,9 +15,6 @@
|
||||
|
||||
package org.springframework.security.core;
|
||||
|
||||
import org.springframework.core.NestedRuntimeException;
|
||||
|
||||
|
||||
/**
|
||||
* Abstract superclass for all exceptions related to an {@link Authentication} object being invalid for whatever
|
||||
* reason.
|
||||
@@ -25,7 +22,7 @@ import org.springframework.core.NestedRuntimeException;
|
||||
* @author Ben Alex
|
||||
* @version $Id$
|
||||
*/
|
||||
public abstract class AuthenticationException extends NestedRuntimeException {
|
||||
public abstract class AuthenticationException extends RuntimeException {
|
||||
//~ Instance fields ================================================================================================
|
||||
|
||||
private Authentication authentication;
|
||||
|
||||
Reference in New Issue
Block a user