public class ProcessInitException extends IOException
Wraps an IOException
like:
java.io.IOException: Cannot run program "ls": java.io.IOException: error=12, Cannot allocate memory
java.io.IOException: Cannot run program "ls": error=316, Unknown error: 316
Constructor and Description |
---|
ProcessInitException(String message,
Throwable cause,
int errorCode) |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode() |
static ProcessInitException |
newInstance(String prefix,
IOException e)
Try to wrap a given
IOException into a ProcessInitException . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public int getErrorCode()
public static ProcessInitException newInstance(String prefix, IOException e)
IOException
into a ProcessInitException
.prefix
- prefix to be added in the message.e
- existing exception possibly containing an error code in its message.null
if we were unable to find an error code from the original message.Copyright © 2020 ZeroTurnaround. All rights reserved.