Package org.dspace.authorize
Class AuthorizeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.dspace.authorize.AuthorizeException
-
- All Implemented Interfaces:
Serializable
public class AuthorizeException extends Exception
Exception indicating the current user of the context does not have permission to perform a particular action.- Version:
- $Revision$
- Author:
- David Stuve
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthorizeException()Create an empty authorize exceptionAuthorizeException(String message)create an exception with only a messageAuthorizeException(String message, DSpaceObject o, int a)Create an authorize exception with a messageAuthorizeException(Throwable throwable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAction()DSpaceObjectgetObject()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AuthorizeException
public AuthorizeException()
Create an empty authorize exception
-
AuthorizeException
public AuthorizeException(String message)
create an exception with only a message- Parameters:
message- Exception message
-
AuthorizeException
public AuthorizeException(Throwable throwable)
-
AuthorizeException
public AuthorizeException(String message, DSpaceObject o, int a)
Create an authorize exception with a message- Parameters:
message- the messageo- objecta- actionID
-
-
Method Detail
-
getAction
public int getAction()
-
getObject
public DSpaceObject getObject()
-
-