This exception must be thrown when an unexpected end of stream has been reached when a StreamMessage or BytesMessage is being read.
StreamMessage
BytesMessage
Constructs a MessageEOFException with the specified reason and error code.paramreason a description of the exceptionparamerrorCode a string specifying the vendor-specific error code super(reason, errorCode);
MessageEOFException
super(reason, errorCode);
Constructs a MessageEOFException with the specified reason. The error code defaults to null.paramreason a description of the exception super(reason);
super(reason);