Revision 2307
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
48 | 48 |
|
49 | 49 |
class ConstraintException(DbException): |
50 | 50 |
def __init__(self, name, cols, cause=None): |
51 |
DbException.__init__(self, |
|
52 |
'for name: '+str(name)+'; columns: '+(', '.join(cols)), cause)
|
|
51 |
DbException.__init__(self, 'Violated constraint '+name+ ' on columns: '
|
|
52 |
+(', '.join(cols)), cause) |
|
53 | 53 |
self.name = name |
54 | 54 |
self.cols = cols |
55 | 55 |
|
Also available in: Unified diff
sql.py: ConstraintException: Changed text of message to specify that a constraint was violated