Thrown by SshMessage implementations when an invalid message is found.
SshMessage
100101102103104105106107
throws InvalidMessageException { try { baw.writeString(prompt); baw.writeString(language); } catch (Exception ex) { throw new InvalidMessageException(ex.getMessage()); } }
117118119120121122123124
throws InvalidMessageException { try { prompt = bar.readString(); language = bar.readString(); } catch (Exception ex) { throw new InvalidMessageException(ex.getMessage()); } }
101102103104105106107108
throws InvalidMessageException { try { baw.writeString(banner); baw.writeString(languageTag); } catch (IOException ioe) { throw new InvalidMessageException("Error writing the message data"); } }
118119120121122123124125
throws InvalidMessageException { try { banner = bar.readString(); languageTag = bar.readString(); } catch (IOException ioe) { throw new InvalidMessageException("Error reading the message data"); } }
124125126127128129130131
baw.writeBinaryString(channelData); } else { baw.writeString(""); } } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
145146147148149150151152
if (bar.available() > 0) { channelData = bar.readBinaryString(); } } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
132133134135136137138139
if (requestData != null) { baw.write(requestData); } } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
155156157158159160161162
if (bar.available() > 0) { requestData = new byte[bar.available()]; bar.read(requestData); } } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
if (channelData != null) { baw.write(channelData); } } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
if (bar.available() > 0) { channelData = new byte[bar.available()]; bar.read(channelData); } } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }