public class SecurityExceptionUtils extends Object
Constructor and Description |
---|
SecurityExceptionUtils() |
Modifier and Type | Method and Description |
---|---|
static RuntimeException |
findSecurityRuntimeException(Throwable exception)
Finds a nested RuntimeExceptions of the types
PermissionDeniedException , AccessDeniedException
or returns null. |
static <T extends Throwable> |
findThrowableOfTypeIn(Class<T> clazz,
Throwable exception)
find in the nested
exception the exception of type clazz
or returns null if no such exception is found. |
public static RuntimeException findSecurityRuntimeException(Throwable exception)
PermissionDeniedException
, AccessDeniedException
or returns null.exception
- Copyright © 2007-2015 EDIT. All Rights Reserved.