if (line.lineType == 0) {
return;
}
if ((line.lineType != 1) && (line.lineType != 2)) {
throw new SshException("Unexpected code found from SCP: " + line);
}
if (line.lineType == 2) {
throw new SshException("SCP error (with no specific message)");
}
throw new SshException("SCP error: " + line.data);
}