|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--ak.err.AppError
Class AppErr represent any application error. This class is the superclass of any particular application error. It contains the whole functionality of an exception. The derived classes are differ only by constructor. Application error gets the action-information dynamically from a configuration file(e.g. per module/per application).
Field Summary | |
protected AppErrorItem |
errItem
|
protected boolean |
m_bDisplay
|
protected boolean |
m_bFullInfo
|
protected boolean |
m_bMsgFile
|
protected boolean |
m_bSuccess
|
protected boolean |
m_bTrace
|
protected java.lang.String |
m_sName
|
protected java.util.Vector |
m_vMedia
|
Fields inherited from class java.lang.Throwable |
backtrace,
detailMessage,
serialVersionUID |
Constructor Summary | |
AppError()
Default constructor |
|
AppError(AppErrorItem err)
Constructor with AppErrItem |
|
AppError(java.lang.String sModul)
Constructor with init-file |
Method Summary | |
void |
addComponent(java.lang.String sComponent)
user may use this function to indicate in which class, which method is the error occured(nested errors) |
void |
addInfo(java.lang.String sInfo)
user may use this function to keep tech-information separately. specialy for communication. (e.g. |
void |
addParam(java.lang.String sParam)
user may use this function to add the information about the parameters which causes this error(e.g. |
protected void |
CheckFile(java.lang.String sPath,
java.lang.String sTemp)
CheckFile: Checks the max-size of log-file |
AppErrorItem |
getErrItem()
gets the error description object(ErrItem) |
java.lang.String |
getMessage()
gets the error message string |
java.lang.String |
GetPath()
GetPath of the init-file (default) |
protected java.lang.String |
GetPath(boolean bError)
GetPath of the init-file If bError=true,path of the default log-file |
java.lang.String |
GetPath(java.lang.String sName)
GetPath of the init-file (for a given name) |
protected java.lang.String |
GetPath(java.lang.String sName,
boolean bError)
GetPath of the init-file If bError=true,path of the default log-file |
protected void |
Init(java.lang.String sModul)
Init |
protected void |
InitDefault()
InitDefault |
protected IF_LogMedia |
loadMedia(java.lang.String sPath)
loads the external log-media dynamicaly (The classpath to the media should be available) |
void |
log()
logs the error description information |
void |
log(java.lang.String sMSG)
logs the message |
java.lang.String |
MakeLog()
gets the error message string |
java.lang.String |
ObjectToString()
In Order to pass this error over CORBA/RMI We need to define two conversion methods: StringToObject(String sObj);ObjectToString(); |
protected boolean |
Read(java.lang.String sInitFile)
Read from Init-file |
protected java.lang.String |
resolveMSG(java.lang.String sMsgShort)
Resolve Message (from Message-file) |
void |
SetEnv(java.lang.String sApp,
java.lang.String sSeverity,
java.lang.String sCategory)
Delegate methods to access error Item: Sets error environment: - Application Name (-> config file) - Error severity(e.g. |
void |
SetMsg(java.lang.String sMsg,
java.lang.String sMsgShort,
java.lang.String sDoAction)
Delegate methods to access error Item: Sets error message: - Full message(e.g. for log-file) - Short message(e.g. for user) - Recomended action |
void |
show()
shows the information in an message-box (only if DISPLAY_FLG is ON; see config-file) |
void |
show(java.lang.String sMSG)
shows the message in an message-box (only if DISPLAY_FLG is ON; see config-file) |
boolean |
showAsk()
shows the information in an ask-box (only if DISPLAY_FLG is ON; see config-file) |
boolean |
showAsk(java.lang.String sMSG)
shows the message in an ask-box (only if DISPLAY_FLG is ON; see config-file) |
boolean |
showError()
shows the information in an error-box (only if DISPLAY_FLG is ON; see config-file) |
boolean |
showError(java.lang.String sMSG)
shows the message in an error-box (only if DISPLAY_FLG is ON; see config-file) |
void |
showInfo()
shows the information in an info-box (only if DISPLAY_FLG is ON; see config-file) |
void |
showInfo(java.lang.String sMSG)
shows the message in an info-box (only if DISPLAY_FLG is ON; see config-file) |
void |
showWarning()
shows the information in a warning-box (only if DISPLAY_FLG is ON; see config-file) |
void |
showWarning(java.lang.String sMSG)
shows the message in a warning-box (only if DISPLAY_FLG is ON; see config-file) |
void |
StringToObject(java.lang.String sObj)
In Order to pass this error over CORBA/RMI We need to define two conversion methods: StringToObject(String sObj);ObjectToString(); |
Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage,
printStackTrace,
printStackTrace,
printStackTrace,
printStackTrace0,
toString |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected AppErrorItem errItem
protected boolean m_bSuccess
protected java.lang.String m_sName
protected boolean m_bFullInfo
protected boolean m_bDisplay
protected boolean m_bTrace
protected boolean m_bMsgFile
protected java.util.Vector m_vMedia
Constructor Detail |
public AppError()
public AppError(AppErrorItem err)
public AppError(java.lang.String sModul)
Method Detail |
protected void Init(java.lang.String sModul)
protected void InitDefault()
protected boolean Read(java.lang.String sInitFile)
protected java.lang.String resolveMSG(java.lang.String sMsgShort)
protected void CheckFile(java.lang.String sPath, java.lang.String sTemp)
protected IF_LogMedia loadMedia(java.lang.String sPath) throws java.lang.Exception
protected java.lang.String GetPath(boolean bError)
protected java.lang.String GetPath(java.lang.String sName, boolean bError)
public void StringToObject(java.lang.String sObj)
public java.lang.String ObjectToString()
public AppErrorItem getErrItem()
public java.lang.String GetPath()
public java.lang.String GetPath(java.lang.String sName)
public void SetEnv(java.lang.String sApp, java.lang.String sSeverity, java.lang.String sCategory)
public void SetMsg(java.lang.String sMsg, java.lang.String sMsgShort, java.lang.String sDoAction)
public void addParam(java.lang.String sParam)
public void addComponent(java.lang.String sComponent)
public void addInfo(java.lang.String sInfo)
public java.lang.String MakeLog()
public java.lang.String getMessage()
public void log()
public void log(java.lang.String sMSG)
public void show()
public void show(java.lang.String sMSG)
public void showInfo()
public void showInfo(java.lang.String sMSG)
public void showWarning()
public void showWarning(java.lang.String sMSG)
public boolean showError()
public boolean showError(java.lang.String sMSG)
public boolean showAsk()
public boolean showAsk(java.lang.String sMSG)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |