Midas
context (M
):
M.info(<string>) |
Writes out "INFO:" string to the terminal. |
M.warning(<string>) |
Writes out "WARN:" string to the terminal. |
M.error(<string>) |
Writes out "ERROR:" string to the terminal and aborts. |
new DataFile(M, <fileName>)
System.out.println(...)
since the NeXtMidas methods handle special cases where output may need to be temporarily
redirected.
+
). For example:
double freq = ...; String user = ...; Table conf = ...; ... M.info("MYPRIM: Setting freq="+freq+" user="+user+" config="+conf);
Java Experts Take Note: |
---|
![]() M.error(<string>) is essentially
the same as throwing new MidasException(<string>) .
The method call to M.error(...) is just intended to make things easier for
those new to Java.
|