func (s *StopPolicy) HasError() bool {
	s.SyncObject.Lock()
	defer s.SyncObject.Unlock()
	return s.errorCount > 0
}
// HasError returns true if the policy contains error
HasError returns true if the policy contains error
// HasError returns true if the policy contains error
func (s *StopPolicy) HasError() bool {
	s.SyncObject.Lock()
	defer s.SyncObject.Unlock()
	return s.errorCount > 0
}
func ( s * StopPolicy ) HasError ( ) bool { s . SyncObject . Lock ( ) defer s . SyncObject . Unlock ( ) return s . errorCount > 0 }
HasError returns true if the policy contains error
HasError returns true if the policy contains error