|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.accpac.sm.Errors
@ThreadSafe public class Errors
Provides access to the errors raised within the context of the current
program. They include errors when calling methods of the Program object, as
well as methods of all objects created directly or indirectly from the
Program object. These include errors of all views created within the program.
An object of this class cannot be created directly by an application. Obtain
the object from the Program object's Errors
property.
The collection is a dynamic object; its properties can change; they reflect
the state of the error stack at the time that the collection is accessed. For
example consider:
Program s; . . . View v = s.openView(...); . . . Errors e = s.getErrors(); System.out.println(e.getCount(); v.update(); System.out.println(e.getCount(); . . .The count printed may be different on the second occasion due to errors caused by the update() call. Note that there is only one call to getErrors().
Program.getErrors()
Method Summary | |
---|---|
void |
clear()
Clears all error messages stored in the program. |
Error |
get(int i)
Gets an Error object that stores details of an error. |
int |
getCount()
Gets the number of errors currently stored in the program. |
java.util.Iterator<Error> |
iterator()
Gets an iterator on the collection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void clear()
public Error get(int i)
i
- The zero-based index of the error to be returned.
public int getCount()
get(int)
public java.util.Iterator<Error> iterator()
iterator
in interface java.lang.Iterable<Error>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |