private function createException($errorOutput)
    {
        if (0 !== strpos($errorOutput, FailedException::class)) {
            return new SeparateProcessException($errorOutput);
        }

        $errorOutput = trim(str_replace(FailedException::class, '', $errorOutput));

        return new FailedException(new SeparateProcessException($errorOutput));
    }