Search in sources :

Example 1 with ProcessBlockedException

use of org.fagu.fmv.soft.exec.exception.ProcessBlockedException in project fmv by f-agu.

the class NoOverwriteDeblock method accept.

@Override
public void accept(ExceptionKnown exceptionKnown) throws IOException {
    NestedException nestedException = exceptionKnown.getNestedException();
    String lastLine = getLineIfBlocked(nestedException);
    if (lastLine != null) {
        throw new ProcessBlockedException(lastLine);
    }
    throw nestedException.getIOException();
}
Also used : ProcessBlockedException(org.fagu.fmv.soft.exec.exception.ProcessBlockedException) NestedException(org.fagu.fmv.soft.exec.exception.NestedException)

Aggregations

NestedException (org.fagu.fmv.soft.exec.exception.NestedException)1 ProcessBlockedException (org.fagu.fmv.soft.exec.exception.ProcessBlockedException)1