Spring Social

org.springframework.social
Class InsufficientPermissionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.social.SocialException
                  extended by org.springframework.social.ApiException
                      extended by org.springframework.social.OperationNotPermittedException
                          extended by org.springframework.social.InsufficientPermissionException
All Implemented Interfaces:
java.io.Serializable

public class InsufficientPermissionException
extends OperationNotPermittedException

Exception thrown when attempting an operation that requires a permission not granted to the caller. To remedy this kind of error, the application should attempt to reauthorize requesting the additional permission scope and then try again.

Author:
Craig Walls
See Also:
Serialized Form

Constructor Summary
InsufficientPermissionException()
           
InsufficientPermissionException(java.lang.String requiredPermission)
           
 
Method Summary
 java.lang.String getRequiredPermission()
          The permission required to access the resource.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InsufficientPermissionException

public InsufficientPermissionException()

InsufficientPermissionException

public InsufficientPermissionException(java.lang.String requiredPermission)
Method Detail

getRequiredPermission

public java.lang.String getRequiredPermission()
The permission required to access the resource. May be null if the required permission is unknown.


Spring Social