parameters: (self, error_id)
return_statement: return len([a for a in self._errors if a.error_id == error_id]) > 0
docstring: Check if the error collection has at least one message of a given error_id.
docstring_summary: Check if the error collection has at least one message of a given error_id.
docstring_tokens: Check if the error collection has at least one message of a given error_id .
function: def contains(self, error_id):
          # type: (unicode) -> bool
          """Check if the error collection has at least one message of a given error_id."""
          return len([a for a in self._errors if a.error_id == error_id]) > 0
function_tokens: def contains ( self , error_id ) : # type: (unicode) -> bool return len ( [ a for a in self . _errors if a . error_id == error_id ] ) > 0