public class ErrMsgUtil
extends java.lang.Object
History:
Modifier and Type | Field and Description |
---|---|
static int |
ERR_NONE |
static int |
ERR_TOTAL |
protected static java.lang.String |
errMsg_ |
Constructor and Description |
---|
ErrMsgUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
AddContentErrMsg(int contentType,
int errType,
java.lang.String curItem,
LexRecord lexRecord,
java.lang.String[][] errTypeStrs,
int[] errTypeNos,
boolean crossRefFlag,
boolean singleRecFlag)
Add Content error message.
|
static void |
AddContentErrMsg(int contentType,
int errType,
java.lang.String msg,
java.lang.String[][] errTypeStrs,
int[] errTypeNos,
boolean crossRefFlag)
Add Content error message.
|
static void |
AppendErrMsg(java.lang.String errMsg)
Append the error message.
|
protected static java.lang.String |
GetErrFixStr(int errType,
java.lang.String[][] errTypeStrs) |
static java.lang.String |
GetErrMsg()
Get the error message.
|
static java.lang.String |
GetErrStats(java.lang.String[][] errTypeStrs,
int[] errTypeNos)
Get the status of errors.
|
protected static java.lang.String |
GetErrTypeStr(int errType,
java.lang.String[][] errTypeStrs) |
static void |
ResetErrMsg()
Reset the error message.
|
static void |
SetErrMsg(java.lang.String errMsg)
Set the error message.
|
protected static java.lang.String errMsg_
public static final int ERR_NONE
public static final int ERR_TOTAL
public static void ResetErrMsg()
public static void SetErrMsg(java.lang.String errMsg)
errMsg
- error message to be setpublic static void AppendErrMsg(java.lang.String errMsg)
errMsg
- error message to be appendpublic static void AddContentErrMsg(int contentType, int errType, java.lang.String msg, java.lang.String[][] errTypeStrs, int[] errTypeNos, boolean crossRefFlag)
contentType
- type of the checking contenterrType
- found error typemsg
- error messageerrTypeStrs
- string of error typeerrTypeNos
- no. of error typecrossRefFlag
- flag for cross referenecepublic static void AddContentErrMsg(int contentType, int errType, java.lang.String curItem, LexRecord lexRecord, java.lang.String[][] errTypeStrs, int[] errTypeNos, boolean crossRefFlag, boolean singleRecFlag)
contentType
- type of the checking contenterrType
- found error typecurItem
- where the error islexRecord
- the lexRecord is checkederrTypeStrs
- string of error typeerrTypeNos
- no. of error typecrossRefFlag
- flag for cross referenecesingleRecFlag
- true if used for a single recordpublic static java.lang.String GetErrMsg()
public static java.lang.String GetErrStats(java.lang.String[][] errTypeStrs, int[] errTypeNos)
errTypeStrs
- string of error typeerrTypeNos
- no. of error typeprotected static java.lang.String GetErrTypeStr(int errType, java.lang.String[][] errTypeStrs)
protected static java.lang.String GetErrFixStr(int errType, java.lang.String[][] errTypeStrs)
Submit a bug or feature
Copyright © 2019 National Library of Medicine