|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface 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. |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
void clear()
Error get(int i)
i
- The zero-based index of the error to be returned.
int getCount()
get(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |