Add E_ versions of our errors to support a new world order wherein error
response constants start with E_ and their codes start with e.. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4491 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -22,22 +22,28 @@
|
|||||||
package com.threerings.presents.data;
|
package com.threerings.presents.data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The invocation codes interface provides codes that are commonly used by
|
* The invocation codes interface provides codes that are commonly used by invocation service
|
||||||
* invocation service implementations. It is implemented as an interface
|
* implementations. It is implemented as an interface so that were an invocation service to desire
|
||||||
* so that were an invocation service to desire to build on two or more
|
* to build on two or more other services, it can provide a codes interface that inherits from all
|
||||||
* other services, it can provide a codes interface that inherits from all
|
|
||||||
* of the services that it extends.
|
* of the services that it extends.
|
||||||
*/
|
*/
|
||||||
public interface InvocationCodes
|
public interface InvocationCodes
|
||||||
{
|
{
|
||||||
/** An error code returned to clients when a service cannot be
|
/** An error code returned to clients when a service cannot be performed because of some
|
||||||
* performed because of some internal server error that we couldn't
|
* internal server error that we couldn't explain in any meaningful way (things like null
|
||||||
* explain in any meaningful way (things like null pointer
|
* pointer exceptions). */
|
||||||
* exceptions). */
|
|
||||||
public static final String INTERNAL_ERROR = "m.internal_error";
|
public static final String INTERNAL_ERROR = "m.internal_error";
|
||||||
|
|
||||||
/** An error code returned to clients when a service cannot be
|
/** An error code returned to clients when a service cannot be performed because the requesting
|
||||||
* performed because the requesting client does not have the proper
|
* client does not have the proper access. */
|
||||||
* access. */
|
|
||||||
public static final String ACCESS_DENIED = "m.access_denied";
|
public static final String ACCESS_DENIED = "m.access_denied";
|
||||||
|
|
||||||
|
/** An error code returned to clients when a service cannot be performed because of some
|
||||||
|
* internal server error that we couldn't explain in any meaningful way (things like null
|
||||||
|
* pointer exceptions). */
|
||||||
|
public static final String E_INTERNAL_ERROR = "e.internal_error";
|
||||||
|
|
||||||
|
/** An error code returned to clients when a service cannot be performed because the requesting
|
||||||
|
* client does not have the proper access. */
|
||||||
|
public static final String E_ACCESS_DENIED = "e.access_denied";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user