package webfunds.xmlx;

/**
 *  XE.java
 *  Listing of Errors as returned in ErrorResponse
 *  
 *  DO NOT EDIT THIS FILE.  See source file below.
 *  
 *  @See http://www.xml-x.org/errors.html
 *  @date Mon Dec 12 14:10:34 GMT 2005
 *  @file XE.txt
 *  @author ./create_errors
 *  @copy Copyright (c) 2000-2005 XML-X group
 */


public class XE
{

 public static final int

  UNKNOWN = -1,    // anything negative is a bug

  GOOD = 0,    // not an error (never used)
  INTERNAL = 1,    // failed for unknown internal reason
  CONFIG = 2,    // some internal configuration failure?
  LATER = 3,    // the backend is temporarily down, try again later
  SECURITY = 4,    // security check failed

  // raw XML errors
  BAD_XML = 10,    // not well formed XML packet
  EMPTY_XML = 11,    // no tags at all
  ROOT = 12,    // this packet failed to recover; it is not the named tag
  // errors above here may not have any RequestId returned in the ErrorResponse

  // XML-X errors
  UNKNOWN_XMLX = 20,    // this is not a request that is handled
  TOO_MANY = 21,    // too many tags included
  MISSING = 22,    // an obligatory tag is missing
  CONTENT = 23,    // the content of a tag does not parse
  UNKNOWN_TAG = 24,    // unknown tag in request
  VERSION = 25,    // this version is unsupported
  NAN = 26,    // Not a number
  NAT = 27,    // Not a time

  DUPLICATE_ATTRIBUTE = 33,    // an attribute was included twice
  UNKNOWN_ATTRIBUTE = 34,    // this attribute is unrecognised
  BAD_ATTRIBUTE = 35,    // attribute has bad contents

  NOT_SUPPORTED = 40,    // a feature requested is unsupported on this server
  SERVER_DOWN = 61,    // the server is not currently serving requests

  // user-defined errors, 100-199, unallocated, not defineable in standard
  // these can only be used in private implementations, and for experiments

  // reserved errors, 200-299, unallocated

  // application errors, above XML-X, above 300

  // User errors 300-399
  UNKNOWN_USER = 300,    // this user is unknown to the server
  NOT_USER = 301,    // the user identifier is not parsable as a user
  NOT_AUTHORISED = 303,    // user does not have the requested rights
  NOT_AUTHENTICATED = 304,    // password failed
  NO_SUCH_TARGET_USER = 305,    // the user you are trying to pay is unknown
  USER_FROZEN = 310,    // the user is frozen / under administrative control
  USER_NOT_PERMITTED = 311,    // the user has a block on the requested action
  AUTH_NOT_GOOD = 312,    // the password did not meet the quality standard
  USER_ADMIN_PENDING = 313,    // user is blocked pending user input (missing info)

  // Account errors 400-499
  NO_SUCH_ACCOUNT = 400,    // the account is unknown
  NOT_ACCOUNT = 401,    // the identifier is not an account identifier
  ACCOUNT_NOT_AUTH = 403,    // account does not have the requested rights
  // 404 
  NO_SUCH_TARGET_AC = 405,    // the account you are trying to pay is unknown
  ACCOUNT_FROZEN = 410,    // the account is frozen
  ACCOUNT_NOT_PERMITTED = 411,    // the account has a block on the requested action
  ACCOUNT_ADMIN_PENDING = 413,    // account is blocked pending user input (missing info)

  // Currency (sub-account) errors 500-599
  NO_SUCH_CURRENCY = 500,    // the currency is unknown
  NOT_CURRENCY = 501,    // currency identifier field is wrong
  CURRENCY_FROZEN = 510,    // the currency is frozen
  CURRENCY_NOT_PERMITTED = 511,    // the currency has a block on the requested action

  // Transaction errors 600-699
  NOT_ENUF = 600,    // source account does not have enough funds
  ALREADY = 601,    // that transaction is already done (by TID)
  ALREADY_USED = 602,    // that TID is used in a different transaction
  FORMAT_BAD = 603,    // server rejected for non-xml-x formatting issue
  TOKEN_UNKNOWN_TYPE = 630,    // the type requested is unknown or unsupported
  TOKEN_NOT_RECOGNISED = 631,    // the text could not be recognised as a token
  TOKEN_REJECTED = 632,    // the recovered token was rejected for value
  TOKEN_ALREADY = 633,    // already settled to caller, idempotent reject
  TOKEN_TARGETTED = 634,    // the token is targetted (to someone else)

  // User Management errors 700-799
  USER_ALREADY = 700,    // User Id already in use
  ACCOUNT_AREADY = 701,    // this account already exists
  NOT_USER_ID = 702,    // The User Id is in the wrong format
  NOT_ACCOUNT_ID = 703,    // The Account Id is in the wrong format
  PROF_BAD = 710,    // Profile has bad field
  AUTHMETHOD_BAD = 711,    // AuthMethod has bad field
  JUNK_FIX_ME = -1;  // bug in generation script

}
