|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.ds.fw.types.FwSimpleObject
|
+--com.ds.fw.errors.FwErrors
This class manipulates a collection with errors.
| Constructor Summary | |
FwErrors()
Default constructor |
|
| Method Summary | |
void |
clear()
Clears the errors vector. |
com.ds.fw.errors.FwError |
getError(int i)
Gets a error from the list by index. |
com.ds.fw.errors.FwError |
getLastError()
Gets the last error from the list. |
int |
getNBErrors()
Gets the number of errors in the list. |
int |
getNBErrors(int type)
Gets the number of errors with the given type. |
void |
newError(java.lang.String name,
java.lang.String descr,
int code,
int type)
Adds a new error to the list. |
java.lang.String |
printErrors()
Returns a string with all errors in the list. |
| Methods inherited from class com.ds.fw.types.FwSimpleObject |
getClassName, getClone, getCopy, getCopy, getDeepCopy, getDisplayString, getDisplayStringFor, postCopy, printStackTrace, toString, toStringValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FwErrors()
| Method Detail |
public void clear()
public void newError(java.lang.String name,
java.lang.String descr,
int code,
int type)
name - name of the errordescr - description of the errorcode - code of the errortype - type of the errorpublic com.ds.fw.errors.FwError getError(int i)
i - the index
public com.ds.fw.errors.FwError getLastError()
public int getNBErrors()
public int getNBErrors(int type)
type - the type
public java.lang.String printErrors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||