parameters: (self)
return_statement: return DatabaseError
docstring: Introspect the current ADO Errors and determine an appropriate error class.
  
          Error.SQLState is a SQL-defined error condition, per the SQL specification:
          http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt
  
          The 23000 class of errors are integrity errors.
          Error 40002 is a transactional integrity error.
docstring_summary: Introspect the current ADO Errors and determine an appropriate error class.
docstring_tokens: Introspect the current ADO Errors and determine an appropriate error class .
function: def _suggest_error_class(self):
          """Introspect the current ADO Errors and determine an appropriate error class.
  
          Error.SQLState is a SQL-defined error condition, per the SQL specification:
          http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt
  
          The 23000 class of errors are integrity errors.
          Error 40002 is a transactional integrity error.
          """
          if self.adoConn is not None:
              for e in self.adoConn.Errors:
                  state = str(e.SQLState)
                  if state.startswith('23') or state=='40002':
                      return IntegrityError
          return DatabaseError
function_tokens: def _suggest_error_class ( self ) : if self . adoConn is not None : for e in self . adoConn . Errors : state = str ( e . SQLState ) if state . startswith ( '23' ) or state == '40002' : return IntegrityError return DatabaseError