Creates a protocol exception.
const ProtocolException(String message, {String? code}) : super(code ?? ErrorCodes.protocolError, message);