public class DpcErrors
extends java.lang.Object
Constructor and Description |
---|
DpcErrors() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getMessage(int id)
Returns the message associated with the specified id.
|
static int |
getType(java.lang.String msg)
Returns the id associated with the specified message.
|
static void |
main(java.lang.String[] args)
Test driver.
|
public static final int IDMAP_OK
public static final int IDMAP_UNKNOWN_PROTOCOL
public static final int IDMAP_MISSING_FIELD
public static final int IDMAP_MULT_FIELD
public static final int IDMAP_BAD_XML_FILE
public static final int IDMAP_VITALITY
public static final int IDMAP_ID_SYNTAX
public static final int IDMAP_DUP_ID
public static final int IDMAP_URL_SYNTAX
public static final int IDMAP_EMAIL_SYNTAX
public static final int IDMAP_ACCESSION_DATE_MISSING
public static final int IDMAP_PERM_REDIRECT
public static final int IDMAP_MIRROR_DIFFERS
public static final int IDMAP_DUP
public static final int IDMAP_NOT_FOUND
public static final int IDMAP_SERVER_ERROR
public static final int IDMAP_NO_SERVICE
public static final int IDMAP_CONNECT_REFUSED
public static final int IDMAP_FTP_MISC
public static final int IDMAP_FTP_LOGIN
public static final int IDMAP_REDIRECT_LIMIT
public static final int IDMAP_TIMEOUT
public static final int IDMAP_UNKNOWN_HOST
public static final int IDMAP_HTTP_HEADER
public static final int IDMAP_HTTP_STATUSLINE
public static final int IDMAP_HTTP_RESPONSE
public static final int IDMAP_AUTHORIZATION
public static final int IDMAP_MISC
public static final int IDMAP_SEVERE_LIMIT
public static final int IDMAP_CHANGE_STATUS
public static final int IDMAP_CHANGE_FILENAME
public static final int IDMAP_CHANGE_MMD
public static final int IDMAP_CHANGE_PRIMARY_URL
public static final int IDMAP_SITE_CONTENT_CHANGED
public static final int IDMAP_NO_XML_FILE
public static final int IDMAP_NEW_XML_FILE
public static final int IDMAP_XML_FILE_NAME_CHANGED
public static final int IDMAP_XML_FILE_REAPPEARED
public static final int IDMAP_NEWS_PAST_ARCHIVE_DATE
public static final int IDMAP_NEWS_ARCHIVE_DATE_NOPARSE
public static java.lang.String getMessage(int id)
String msg = DpcErrors.getMessage( DpcErrors.IDMAP_NODBREC);
public static int getType(java.lang.String msg)
int type = DpcErrors.getType( "No DB rec");
public static void main(java.lang.String[] args)