RuntimeError
IO will return this error if it cannot process a message. For example, if you tried to write a string, it would fail, because the string is not a message.
Custom error message