ch.javasoft.job
Class StdErrNonEmptyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
ch.javasoft.job.ExecException
ch.javasoft.job.StdErrNonEmptyException
- All Implemented Interfaces:
- Serializable
public class StdErrNonEmptyException
- extends ExecException
An exception which is thrown by ExecJob.execWaitForStdOutString() or
ExecJobMonitor.waitForStdOutString() respectively if the process
was writing to the error stream.
Both standard out and standard error output are available, either as
String or with BufferedReaders allowing linewise accessing the
output.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
StdErrNonEmptyException
public StdErrNonEmptyException(String stdOut,
String stdErr)
getStdErr
public String getStdErr()
- Returns:
- the standard error as a string
getStdErrReader
public BufferedReader getStdErrReader()
- Returns:
- The standard error as buffered reader. Each call to this
method creates a new reader instance.
getStdOut
public String getStdOut()
- Returns:
- the standard output as a string
getStdOutReader
public BufferedReader getStdOutReader()
- Returns:
- The standard error as buffered reader. Each call to this
method creates a new reader instance.