org.oclc.da.gdfr.registryprototype.exceptions
Class RegistryExceptionCodes

java.lang.Object
  extended by org.oclc.da.gdfr.registryprototype.exceptions.RegistryExceptionCodes

public class RegistryExceptionCodes
extends java.lang.Object


Field Summary
static int BASE64_DECODE_ERROR
           
static int BASE64_ENCODE_ERROR
           
static int CQL_PARSE_ERROR
           
static int ERROR_CREATING
           
static int INTERRUPTED_PROCESS
           
static int INVALID_ARGUMENT
           
static int INVALID_CQL_INDEX
           
static int INVALID_EMAIL
           
static int INVALID_GUID
           
static int INVALID_PROPERTY
           
static int INVALID_RECORD
           
static int INVALID_XML
           
static int INVOCATION_ERROR
           
static int IO_ERROR
           
static int MISSING_ARGUMENT
           
static int MISSING_ATTRIBUTE
           
static int MISSING_PROFILE
           
static int MISSING_PROPERTY
           
static int MULTIPLE
          This class defines all the error codes, short names and messages that exceptions thrown can hold.
static int MUST_BE_MORE_RECENT
           
static int MUST_BE_UNIQUE
           
static int MUST_BE_VALID
           
static int MUST_BE_VALID_URL
           
static int MUST_EXIST
           
static int MUST_NOT_BE_NULL
           
static int MUST_NOT_EXIST
           
static int NOT_COMPARABLE_TYPE
           
static int NOT_IMPLEMENTED
           
static int PARSE_ERROR
           
static int SQL_ERROR
           
static int UNAUTHORIZED_USER
           
static int UNEXPECTED_SYSTEM_ERROR
           
static int UNSUPPORTED_CQL_NODE
           
static int UNSUPPORTED_QUERY
           
static int VALIDATION_ERRORS
           
static int XML_DB_ADD_ERROR
           
static int XML_DB_CREATE_CONTAINER_ERROR
           
static int XML_DB_DELETE_CONTAINER_ERROR
           
static int XML_DB_DELETE_ERROR
           
static int XML_DB_INDEX_ERROR
           
static int XML_DB_READ_ADMIN_ERROR
           
static int XML_DB_READ_CONTENT_ERROR
           
static int XML_DB_READ_ERROR
           
static int XML_DB_SEARCH_ERROR
           
static int XML_DB_UPDATE_ERROR
           
static int XML_PARSE_ERROR
           
static int XPATH_ERROR
           
 
Constructor Summary
protected RegistryExceptionCodes()
           
 
Method Summary
static java.lang.String formatMessage(int code, java.lang.String[] args)
           
static java.lang.String getExceptionCodeName(int code)
           
protected static void loadCode(int c, java.lang.String n, java.lang.String m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MULTIPLE

public static final int MULTIPLE
This class defines all the error codes, short names and messages that exceptions thrown can hold.

See Also:
Constant Field Values

UNEXPECTED_SYSTEM_ERROR

public static final int UNEXPECTED_SYSTEM_ERROR
See Also:
Constant Field Values

UNAUTHORIZED_USER

public static final int UNAUTHORIZED_USER
See Also:
Constant Field Values

INVALID_EMAIL

public static final int INVALID_EMAIL
See Also:
Constant Field Values

MUST_EXIST

public static final int MUST_EXIST
See Also:
Constant Field Values

MUST_NOT_EXIST

public static final int MUST_NOT_EXIST
See Also:
Constant Field Values

ERROR_CREATING

public static final int ERROR_CREATING
See Also:
Constant Field Values

MUST_NOT_BE_NULL

public static final int MUST_NOT_BE_NULL
See Also:
Constant Field Values

MUST_BE_UNIQUE

public static final int MUST_BE_UNIQUE
See Also:
Constant Field Values

MUST_BE_MORE_RECENT

public static final int MUST_BE_MORE_RECENT
See Also:
Constant Field Values

MUST_BE_VALID

public static final int MUST_BE_VALID
See Also:
Constant Field Values

MUST_BE_VALID_URL

public static final int MUST_BE_VALID_URL
See Also:
Constant Field Values

IO_ERROR

public static final int IO_ERROR
See Also:
Constant Field Values

INTERRUPTED_PROCESS

public static final int INTERRUPTED_PROCESS
See Also:
Constant Field Values

NOT_IMPLEMENTED

public static final int NOT_IMPLEMENTED
See Also:
Constant Field Values

INVOCATION_ERROR

public static final int INVOCATION_ERROR
See Also:
Constant Field Values

UNSUPPORTED_QUERY

public static final int UNSUPPORTED_QUERY
See Also:
Constant Field Values

VALIDATION_ERRORS

public static final int VALIDATION_ERRORS
See Also:
Constant Field Values

PARSE_ERROR

public static final int PARSE_ERROR
See Also:
Constant Field Values

INVALID_RECORD

public static final int INVALID_RECORD
See Also:
Constant Field Values

MISSING_ARGUMENT

public static final int MISSING_ARGUMENT
See Also:
Constant Field Values

INVALID_ARGUMENT

public static final int INVALID_ARGUMENT
See Also:
Constant Field Values

INVALID_PROPERTY

public static final int INVALID_PROPERTY
See Also:
Constant Field Values

MISSING_PROPERTY

public static final int MISSING_PROPERTY
See Also:
Constant Field Values

MISSING_ATTRIBUTE

public static final int MISSING_ATTRIBUTE
See Also:
Constant Field Values

SQL_ERROR

public static final int SQL_ERROR
See Also:
Constant Field Values

XML_DB_READ_ERROR

public static final int XML_DB_READ_ERROR
See Also:
Constant Field Values

XML_DB_UPDATE_ERROR

public static final int XML_DB_UPDATE_ERROR
See Also:
Constant Field Values

XML_DB_DELETE_ERROR

public static final int XML_DB_DELETE_ERROR
See Also:
Constant Field Values

XML_DB_ADD_ERROR

public static final int XML_DB_ADD_ERROR
See Also:
Constant Field Values

XML_DB_READ_ADMIN_ERROR

public static final int XML_DB_READ_ADMIN_ERROR
See Also:
Constant Field Values

XML_DB_READ_CONTENT_ERROR

public static final int XML_DB_READ_CONTENT_ERROR
See Also:
Constant Field Values

XML_DB_SEARCH_ERROR

public static final int XML_DB_SEARCH_ERROR
See Also:
Constant Field Values

XML_DB_INDEX_ERROR

public static final int XML_DB_INDEX_ERROR
See Also:
Constant Field Values

XML_DB_CREATE_CONTAINER_ERROR

public static final int XML_DB_CREATE_CONTAINER_ERROR
See Also:
Constant Field Values

XML_DB_DELETE_CONTAINER_ERROR

public static final int XML_DB_DELETE_CONTAINER_ERROR
See Also:
Constant Field Values

XML_PARSE_ERROR

public static final int XML_PARSE_ERROR
See Also:
Constant Field Values

INVALID_GUID

public static final int INVALID_GUID
See Also:
Constant Field Values

INVALID_XML

public static final int INVALID_XML
See Also:
Constant Field Values

XPATH_ERROR

public static final int XPATH_ERROR
See Also:
Constant Field Values

CQL_PARSE_ERROR

public static final int CQL_PARSE_ERROR
See Also:
Constant Field Values

INVALID_CQL_INDEX

public static final int INVALID_CQL_INDEX
See Also:
Constant Field Values

UNSUPPORTED_CQL_NODE

public static final int UNSUPPORTED_CQL_NODE
See Also:
Constant Field Values

MISSING_PROFILE

public static final int MISSING_PROFILE
See Also:
Constant Field Values

NOT_COMPARABLE_TYPE

public static final int NOT_COMPARABLE_TYPE
See Also:
Constant Field Values

BASE64_DECODE_ERROR

public static final int BASE64_DECODE_ERROR
See Also:
Constant Field Values

BASE64_ENCODE_ERROR

public static final int BASE64_ENCODE_ERROR
See Also:
Constant Field Values
Constructor Detail

RegistryExceptionCodes

protected RegistryExceptionCodes()
Method Detail

getExceptionCodeName

public static java.lang.String getExceptionCodeName(int code)

formatMessage

public static java.lang.String formatMessage(int code,
                                             java.lang.String[] args)

loadCode

protected static void loadCode(int c,
                               java.lang.String n,
                               java.lang.String m)


Copyright © 2008 OCLC Online Computer Library Center, Inc.. All Rights Reserved.