DLESE Tools
v1.6.0

org.dlese.dpc.util
Class DpcErrors

java.lang.Object
  extended by org.dlese.dpc.util.DpcErrors

public class DpcErrors
extends Object

Overall compendium of error codes for DLESE DPC software components. Error ranges:


Field Summary
static int IDMAP_ACCESSION_DATE_MISSING
           
static int IDMAP_AUTHORIZATION
           
static int IDMAP_BAD_XML_FILE
           
static int IDMAP_CHANGE_FILENAME
           
static int IDMAP_CHANGE_MMD
           
static int IDMAP_CHANGE_PRIMARY_URL
           
static int IDMAP_CHANGE_STATUS
           
static int IDMAP_CONNECT_REFUSED
           
static int IDMAP_DUP
           
static int IDMAP_DUP_ID
           
static int IDMAP_EMAIL_SYNTAX
           
static int IDMAP_FTP_LOGIN
           
static int IDMAP_FTP_MISC
           
static int IDMAP_HTTP_HEADER
           
static int IDMAP_HTTP_RESPONSE
           
static int IDMAP_HTTP_STATUSLINE
           
static int IDMAP_ID_SYNTAX
           
static int IDMAP_MIRROR_DIFFERS
           
static int IDMAP_MISC
           
static int IDMAP_MISSING_FIELD
           
static int IDMAP_MULT_FIELD
           
static int IDMAP_NEW_XML_FILE
           
static int IDMAP_NEWS_ARCHIVE_DATE_NOPARSE
           
static int IDMAP_NEWS_PAST_ARCHIVE_DATE
           
static int IDMAP_NO_SERVICE
           
static int IDMAP_NO_XML_FILE
           
static int IDMAP_NOT_FOUND
           
static int IDMAP_OK
           
static int IDMAP_PERM_REDIRECT
           
static int IDMAP_REDIRECT_LIMIT
           
static int IDMAP_SERVER_ERROR
           
static int IDMAP_SEVERE_LIMIT
           
static int IDMAP_SITE_CONTENT_CHANGED
           
static int IDMAP_TIMEOUT
           
static int IDMAP_UNKNOWN_HOST
           
static int IDMAP_UNKNOWN_PROTOCOL
           
static int IDMAP_URL_SYNTAX
           
static int IDMAP_VITALITY
           
static int IDMAP_XML_FILE_NAME_CHANGED
           
static int IDMAP_XML_FILE_REAPPEARED
           
 
Constructor Summary
DpcErrors()
           
 
Method Summary
static String getMessage(int id)
          Returns the message associated with the specified id.
static int getType(String msg)
          Returns the id associated with the specified message.
static void main(String[] args)
          Test driver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDMAP_OK

public static final int IDMAP_OK

IDMAP_UNKNOWN_PROTOCOL

public static final int IDMAP_UNKNOWN_PROTOCOL

IDMAP_MISSING_FIELD

public static final int IDMAP_MISSING_FIELD

IDMAP_MULT_FIELD

public static final int IDMAP_MULT_FIELD

IDMAP_BAD_XML_FILE

public static final int IDMAP_BAD_XML_FILE

IDMAP_VITALITY

public static final int IDMAP_VITALITY

IDMAP_ID_SYNTAX

public static final int IDMAP_ID_SYNTAX

IDMAP_DUP_ID

public static final int IDMAP_DUP_ID

IDMAP_URL_SYNTAX

public static final int IDMAP_URL_SYNTAX

IDMAP_EMAIL_SYNTAX

public static final int IDMAP_EMAIL_SYNTAX

IDMAP_ACCESSION_DATE_MISSING

public static final int IDMAP_ACCESSION_DATE_MISSING

IDMAP_PERM_REDIRECT

public static final int IDMAP_PERM_REDIRECT

IDMAP_MIRROR_DIFFERS

public static final int IDMAP_MIRROR_DIFFERS

IDMAP_DUP

public static final int IDMAP_DUP

IDMAP_NOT_FOUND

public static final int IDMAP_NOT_FOUND

IDMAP_SERVER_ERROR

public static final int IDMAP_SERVER_ERROR

IDMAP_NO_SERVICE

public static final int IDMAP_NO_SERVICE

IDMAP_CONNECT_REFUSED

public static final int IDMAP_CONNECT_REFUSED

IDMAP_FTP_MISC

public static final int IDMAP_FTP_MISC

IDMAP_FTP_LOGIN

public static final int IDMAP_FTP_LOGIN

IDMAP_REDIRECT_LIMIT

public static final int IDMAP_REDIRECT_LIMIT

IDMAP_TIMEOUT

public static final int IDMAP_TIMEOUT

IDMAP_UNKNOWN_HOST

public static final int IDMAP_UNKNOWN_HOST

IDMAP_HTTP_HEADER

public static final int IDMAP_HTTP_HEADER

IDMAP_HTTP_STATUSLINE

public static final int IDMAP_HTTP_STATUSLINE

IDMAP_HTTP_RESPONSE

public static final int IDMAP_HTTP_RESPONSE

IDMAP_AUTHORIZATION

public static final int IDMAP_AUTHORIZATION

IDMAP_MISC

public static final int IDMAP_MISC

IDMAP_SEVERE_LIMIT

public static final int IDMAP_SEVERE_LIMIT
See Also:
Constant Field Values

IDMAP_CHANGE_STATUS

public static final int IDMAP_CHANGE_STATUS

IDMAP_CHANGE_FILENAME

public static final int IDMAP_CHANGE_FILENAME

IDMAP_CHANGE_MMD

public static final int IDMAP_CHANGE_MMD

IDMAP_CHANGE_PRIMARY_URL

public static final int IDMAP_CHANGE_PRIMARY_URL

IDMAP_SITE_CONTENT_CHANGED

public static final int IDMAP_SITE_CONTENT_CHANGED

IDMAP_NO_XML_FILE

public static final int IDMAP_NO_XML_FILE

IDMAP_NEW_XML_FILE

public static final int IDMAP_NEW_XML_FILE

IDMAP_XML_FILE_NAME_CHANGED

public static final int IDMAP_XML_FILE_NAME_CHANGED

IDMAP_XML_FILE_REAPPEARED

public static final int IDMAP_XML_FILE_REAPPEARED

IDMAP_NEWS_PAST_ARCHIVE_DATE

public static final int IDMAP_NEWS_PAST_ARCHIVE_DATE

IDMAP_NEWS_ARCHIVE_DATE_NOPARSE

public static final int IDMAP_NEWS_ARCHIVE_DATE_NOPARSE
Constructor Detail

DpcErrors

public DpcErrors()
Method Detail

getMessage

public static String getMessage(int id)
Returns the message associated with the specified id. Sample usage:
String msg = DpcErrors.getMessage( DpcErrors.IDMAP_NODBREC);


getType

public static int getType(String msg)
Returns the id associated with the specified message. Sample usage:
int type = DpcErrors.getType( "No DB rec");

Returns:
The message type or, if not found, -1.

main

public static void main(String[] args)
Test driver.


DLESE Tools
v1.6.0