InvalidOperationException StateError (CommandState action) { return new InvalidOperationException ( String.Format ("Invalid attempt to read binary content by {0}, while once binary reading was started by {1}", action, state)); }