com.sap.security.api
Class PrincipalNotAccessibleException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.sap.security.api.UMRuntimeException
                          |
                          +--com.sap.security.api.PrincipalNotAccessibleException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NoAccessPermissionException

public class PrincipalNotAccessibleException
extends UMRuntimeException

This exception is used, if the access to a already populated principal fails. Example: You got a role object from the RoleFactory which doesn't have all available attributes populated. If you access one of the not populated attributes, the role tries to read it from the role's persistence adapter (lazy fetch). If the role object on the persistence is not accessible for any reason (e.g. deleted in the meanwhile or backend down), a PrincipalNotAccessibleException exception will be thrown.

See Also:
Serialized Form

Field Summary
static java.lang.String NO_PERMISSION_FOR_ROLE_ASSIGNMENT_MESSAGE
           
 
Constructor Summary
PrincipalNotAccessibleException()
           
PrincipalNotAccessibleException(java.lang.String message)
           
PrincipalNotAccessibleException(java.lang.Throwable nestedException)
           
PrincipalNotAccessibleException(java.lang.Throwable nestedException, java.lang.String message)
           
 
Methods inherited from class com.sap.security.api.UMRuntimeException
getNestedException, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_PERMISSION_FOR_ROLE_ASSIGNMENT_MESSAGE

public static final java.lang.String NO_PERMISSION_FOR_ROLE_ASSIGNMENT_MESSAGE
Constructor Detail

PrincipalNotAccessibleException

public PrincipalNotAccessibleException()

PrincipalNotAccessibleException

public PrincipalNotAccessibleException(java.lang.String message)

PrincipalNotAccessibleException

public PrincipalNotAccessibleException(java.lang.Throwable nestedException,
                                       java.lang.String message)

PrincipalNotAccessibleException

public PrincipalNotAccessibleException(java.lang.Throwable nestedException)