|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.sf.basedb.core.BaseException
net.sf.basedb.core.PermissionDeniedException
public class PermissionDeniedException
This exception is thrown when trying to load or manipulate an item in the database and you don't have the required permission.
| Field Summary | |
|---|---|
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
PermissionDeniedException(Permission permission)
Creates a new PermissionDeniedException. |
|
PermissionDeniedException(Permission permission,
String what)
Creates a new PermissionDeniedException. |
|
PermissionDeniedException(String message)
Creates a new PermissionDeniedException. |
|
PermissionDeniedException(String message,
Throwable cause)
Creates a new PermissionDeniedException. |
|
| Method Summary |
|---|
| 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 |
| Field Detail |
|---|
private static final long serialVersionUID
| Constructor Detail |
|---|
public PermissionDeniedException(Permission permission)
PermissionDeniedException. The error
message produced will look like: Permission denied: Not
allowed to write
permission - The permission requested. Should be one of the
values defined in the Permission class}
public PermissionDeniedException(Permission permission,
String what)
PermissionDeniedException. The error
message produced will look like: Permission denied:
Not allowed to read User[ID=1]
permission - The permission requested. Should be one of the
values defined in the Permission class}what - A description of what access is denied to, for
example: User[ID=1]public PermissionDeniedException(String message)
PermissionDeniedException. The error
message produced will look like:
Permission denied: message
message - The message explaining why permission was denied
public PermissionDeniedException(String message,
Throwable cause)
PermissionDeniedException. The error
message produced will look like:
Permission denied: message
message - The message explaining why permission was deniedcause - The original cause of the exception
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||