|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.threerings.presents.server.InvocationException
public class InvocationException
Used to report failures when executing service requests.
| Constructor Summary | |
|---|---|
InvocationException(String cause)
Constructs an invocation exception with the supplied cause code string. |
|
InvocationException(String bundle,
String code)
Constructs an invocation exception with the supplied cause code string and qualifying message bundle. |
|
| Method Summary | |
|---|---|
static void |
require(boolean condition,
String errmsg)
Requires that the supplied condition be true, otherwise an invocation exception with the supplied error message is thrown. |
static void |
requireAccess(ClientObject clobj,
Permission perm)
A version of requireAccess(ClientObject,Permission,Object) that takes no context. |
static void |
requireAccess(ClientObject clobj,
Permission perm,
Object context)
Requires that the specified client have the specified permissions. |
| 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 |
|---|
public InvocationException(String cause)
public InvocationException(String bundle,
String code)
MessageBundle.qualify(java.lang.String, java.lang.String)).
| Method Detail |
|---|
public static void requireAccess(ClientObject clobj,
Permission perm,
Object context)
throws InvocationException
InvocationException - if they do not.
public static void requireAccess(ClientObject clobj,
Permission perm)
throws InvocationException
requireAccess(ClientObject,Permission,Object) that takes no context.
InvocationException
public static void require(boolean condition,
String errmsg)
throws InvocationException
InvocationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||