public class ErrorWriterBatch extends java.lang.Object implements ErrorWriter
Modifier and Type | Field and Description |
---|---|
private ClientExports |
client
Client exports access.
|
Constructor and Description |
---|
ErrorWriterBatch(ClientExports client)
The only constructor used to create error writer.
|
Modifier and Type | Method and Description |
---|---|
void |
displayError(java.lang.String errmsg)
Displays error message in batch mode.
|
void |
displayError(java.lang.String errmsg,
boolean noMessageBox)
Displays error message in batch mode.
|
void |
displayErrorRedirected(java.lang.String errmsg)
Displays error message using currently installed writer implementation.
|
boolean |
isBatchInBackground()
Checks if the client is running in batch background mode.
|
boolean |
isInBatchMode()
Checks if the client is running in batch mode.
|
void |
logStackTrace(java.lang.String message)
Write message and stack trace to the client log
|
void |
message(java.lang.String errmsg)
Displays error message in bach mode.
|
void |
messageBox(java.lang.String masterMsg,
java.lang.String title)
Displays error message box with title in bach mode.
|
void |
pause()
Implements pause processing in batch mode.
|
void |
stopBatchSession()
Stops the associated client session by generating UnstoppableExitException.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
displayWarning
private ClientExports client
public ErrorWriterBatch(ClientExports client)
client
- The client instance associated with writer.public void displayError(java.lang.String errmsg)
displayError
in interface ErrorWriter
errmsg
- Text of the message to display.public void displayError(java.lang.String errmsg, boolean noMessageBox)
displayError
in interface ErrorWriter
errmsg
- Text of the message to display.noMessageBox
- Not used.public void displayErrorRedirected(java.lang.String errmsg)
displayErrorRedirected
in interface ErrorWriter
errmsg
- Text of the message to display.public boolean isInBatchMode()
isInBatchMode
in interface ErrorWriter
true
for batch mode, false
otherwise.public boolean isBatchInBackground()
true
for background mode, false
otherwise.public void message(java.lang.String errmsg)
message
in interface ErrorWriter
errmsg
- Text of the message to display.public void messageBox(java.lang.String masterMsg, java.lang.String title)
messageBox
in interface ErrorWriter
masterMsg
- Text of the message to display.title
- The title for the message box to display.public void pause()
pause
in interface ErrorWriter
public void stopBatchSession()
stopBatchSession
in interface ErrorWriter
public void logStackTrace(java.lang.String message)
logStackTrace
in interface ErrorWriter
message
- the message