//
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
// http://www.threerings.net/code/narya/
//
// This library is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; either version 2.1 of the License, or
// (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

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
{
    /** 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";
}

@@ -1032,19 +1032,16 @@
  used by
-%0A *
  invocat
@@ -1051,16 +1051,19 @@
  service
+%0A *
  impleme
@@ -1105,19 +1105,16 @@
 nterface
-%0A *
  so that
@@ -1150,16 +1150,19 @@
 o desire
+%0A *
  to buil
@@ -1177,19 +1177,16 @@
  or more
-%0A *
  other s
@@ -1383,39 +1383,32 @@
 ervice cannot be
-%0A     *
  performed becau
@@ -1417,16 +1417,23 @@
  of some
+%0A     *
  interna
@@ -1463,23 +1463,16 @@
 couldn't
-%0A     *
  explain
@@ -1515,16 +1515,23 @@
 null
+%0A     *
  pointer
 %0A   
@@ -1526,23 +1526,16 @@
  pointer
-%0A     *
  excepti
@@ -1678,23 +1678,522 @@
 annot be
-%0A     *
+ performed because the requesting%0A     * client does not have the proper access. */%0A    public static final String ACCESS_DENIED = %22m.access_denied%22;%0A%0A    /** An error code returned to clients when a service cannot be performed because of some%0A     * internal server error that we couldn't explain in any meaningful way (things like null%0A     * pointer exceptions). */%0A    public static final String E_INTERNAL_ERROR = %22e.internal_error%22;%0A%0A    /** An error code returned to clients when a service cannot be
  perform
@@ -2217,16 +2217,23 @@
 questing
+%0A     *
  client 
@@ -2256,23 +2256,16 @@
 e proper
-%0A     *
  access.
@@ -2291,32 +2291,34 @@
 ic final String 
+E_
 ACCESS_DENIED = 
@@ -2310,33 +2310,33 @@
 CCESS_DENIED = %22
-m
+e
 .access_denied%22;

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..