|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wm.app.tn.doc.BizDocErrorSet
public class BizDocErrorSet
This organizes a collection of activity log events attached to a BizDoc. This is a workaround -- you can't persist events on a document that itself hasn't been persisted, so we keep them here.
Constructor Summary | |
---|---|
BizDocErrorSet()
Create an empty set of errors |
Method Summary | |
---|---|
void |
addError(ActivityLogEntry err)
Add an error to this set of errors |
void |
addError(java.lang.String cls,
java.lang.String brief,
java.lang.String full,
java.lang.Throwable exc)
Build and add an error to this set of errors |
static com.wm.data.IData |
create()
|
com.wm.data.IDataCursor |
getCursor()
For internal use only |
int |
getEntryCount()
|
int |
getErrorCount()
|
ActivityLogEntry[] |
getErrors(java.lang.String cls)
Get a collection of errors from this set |
com.wm.data.IDataHashCursor |
getHashCursor()
For internal use only |
com.wm.data.IDataIndexCursor |
getIndexCursor()
For internal use only |
com.wm.data.IDataSharedCursor |
getSharedCursor()
For internal use only |
com.wm.data.IDataTreeCursor |
getTreeCursor()
For internal use only |
boolean |
hasErrors()
|
void |
setErrors(java.lang.String key,
ActivityLogEntry[] err_list)
Set the specified set of errors |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BizDocErrorSet()
Method Detail |
---|
public static com.wm.data.IData create()
public com.wm.data.IDataCursor getCursor()
getCursor
in interface com.wm.data.IData
public com.wm.data.IDataSharedCursor getSharedCursor()
getSharedCursor
in interface com.wm.data.IData
public com.wm.data.IDataIndexCursor getIndexCursor()
getIndexCursor
in interface com.wm.data.IData
public com.wm.data.IDataTreeCursor getTreeCursor()
getTreeCursor
in interface com.wm.data.IData
public com.wm.data.IDataHashCursor getHashCursor()
getHashCursor
in interface com.wm.data.IData
public final void setErrors(java.lang.String key, ActivityLogEntry[] err_list)
key
- a key by which to refer to these errorserr_list
- the errors in questionpublic void addError(ActivityLogEntry err)
err
- the error in questionpublic void addError(java.lang.String cls, java.lang.String brief, java.lang.String full, java.lang.Throwable exc)
cls
- the class of this error entrybrf_msg
- a short message describing the error (non-null)fll_msg
- a longer message (may be null)exc
- the precipitating exception (may be null)public final ActivityLogEntry[] getErrors(java.lang.String cls)
cls
- which errors to get
public final boolean hasErrors()
public final int getErrorCount()
public final int getEntryCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |