Thrown by SshMessage implementations when an invalid message is found.
SshMessage
8788899091929394
throws java.io.IOException, com.sshtools.j2ssh.transport.InvalidMessageException { try { baw.writeBinaryString(data); } catch (IOException ioe) { throw new InvalidMessageException(ioe.getMessage()); } }
119120121122123124125126
throws InvalidMessageException { try { recipientChannel = bar.readInt(); bytesToAdd = bar.readInt(); } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
107108109110111112113114
throws java.io.IOException, com.sshtools.j2ssh.transport.InvalidMessageException { try { data = bar.readBinaryString(); } catch (IOException ioe) { throw new InvalidMessageException(ioe.getMessage()); } }
146147148149150151152153
if (channelData != null) { baw.write(channelData); } } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
170171172173174175176177
if (bar.available() > 0) { channelData = new byte[bar.available()]; bar.read(channelData); } } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
111112113114115116117118
throws java.io.IOException, com.sshtools.j2ssh.transport.InvalidMessageException { try { baw.writeInt(errorcode); } catch (IOException ioe) { throw new InvalidMessageException(ioe.getMessage()); } }
131132133134135136137138
throws java.io.IOException, com.sshtools.j2ssh.transport.InvalidMessageException { try { errorcode = (int) bar.readInt(); } catch (IOException ioe) { throw new InvalidMessageException(ioe.getMessage()); } }
145146147148149150151152
if (channelData != null) { baw.write(channelData); } } catch (IOException ioe) { throw new InvalidMessageException("Could not write message data"); } }
169170171172173174175176
8990919293949596
protected void constructByteArray(ByteArrayWriter baw) throws InvalidMessageException { try { baw.writeInt(channelId); } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }