|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsav.z.Warning
An object that provides information if Session process, analysis/execution, completes with Warnings: Errors or Failures. The example prints Warnings.
String text;
Session ss;
...
ss.z(text);
ss.closeBases();
if (ss.hasWarnings()) {
Warning w[] = ss.warnings();
for (int i = 0; i < w.length; ++i)
System.out.println(w[i]);
}
Session.warnings(),
Statement.warnings()| Constructor Summary | |
Warning()
|
|
| Method Summary | |
java.lang.String |
message()
Returns a string explanation of Warning. |
java.lang.String |
name()
Returns name of exception or type name, ERROR/FAILURE |
int |
position()
Returns begin of warning Statement expression in a Script text. |
java.lang.String |
toString()
Returns String of a Warning object.
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Warning()
| Method Detail |
public java.lang.String toString()
String of a Warning object.
String has view:
name [:[data file][, data position]] [:([line][, position])] [:message]where
name - name of exception or name of Warning type ERROR/FAILUREdata file - file name, if warning Statement is in a read/written out table datadata position - begin of a warning Statement expression in
a data (file or "<...>" Script text)line - line number of warning Statement in a Script textposition - begin of a warning Statement expression in a Script textmessage - string explanation of Warning
public java.lang.String name()
public int position()
public java.lang.String message()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||