<s> class DatabaseError ( Exception ) : <EOL> def __init__ ( self , msg , * args , ** kw ) : <EOL> """<STR_LIT>""" <EOL> self . msg = str ( msg ) <EOL> self . args = args <EOL> self . kw = kw <EOL> def __str__ ( self ) : <EOL> ret = self . msg <EOL> if len ( self . args ) : <EOL> ret += "<STR_LIT>" + str ( self . args ) <EOL> if len ( self . kw ) : <EOL> ret += "<STR_LIT>" + str ( self . kw ) <EOL> return ret <EOL> class InvalidBackend ( DatabaseError ) : <EOL> pass <EOL> class DatabaseLocked ( DatabaseError ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class ReadOnlyDatabase ( DatabaseError ) : <EOL> pass <EOL> class SchemaVersionError ( DatabaseError ) : <EOL> pass <EOL> class CursorError ( DatabaseError ) : <EOL> pass <EOL> class UnknownDatabase ( DatabaseError ) : <EOL> pass <EOL> class ColumnNotUnique ( CursorError ) : <EOL> pass <EOL> class ConstraintViolation ( CursorError ) : <EOL> pass <EOL> class DuplicateColumnName ( CursorError ) : <EOL> pass <EOL> class InvalidTable ( CursorError ) : <EOL> pass </s>
