Moved remaining client.*Codes classes into their respective data packages

as they are intended to represent codes shared between the client and the
server.  Made correspondingly necessary changes throughout.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1240 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2002-04-15 16:28:05 +00:00
parent f6fedf5bdf
commit a97e9db978
31 changed files with 71 additions and 59 deletions
@@ -0,0 +1,31 @@
//
// $Id: InvocationCodes.java,v 1.1 2002/04/15 16:28:03 shaper Exp $
package com.threerings.presents.data;
/**
* The invocation codes interface provides codes that are commonly used by
* invocation service implementations. It is implemented as an interface
* so that were an invocation service to desire to build on two or more
* other services, it can provide a codes interface that inherits from all
* of the services that it extends.
*/
public interface InvocationCodes
{
/**
* Generally used in responses that can either have the value success,
* or a string code explaining the reason for failure.
*/
public static final String SUCCESS = "success";
/** 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 INTERNAL_ERROR = "m.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 ACCESS_DENIED = "m.access_denied";
}