The ErrorMessage class is accessible via the sqlobject.mysql.mysqlconnection module.
x.__add__(y) <==> x+y
x.__contains__(y) <==> y in x
x.__eq__(y) <==> x==y
x.__ge__(y) <==> x>=y
x.__getitem__(y) <==> x[y]
x.__getslice__(i, j) <==> x[i:j]
Use of negative indices is not supported.
x.__gt__(y) <==> x>y
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
x.__le__(y) <==> x<=y
x.__len__() <==> len(x)
x.__lt__(y) <==> x<y
x.__mod__(y) <==> x%y
x.__mul__(n) <==> x*n
x.__ne__(y) <==> x!=y
x.__rmod__(y) <==> y%x
x.__rmul__(n) <==> n*x
See the source for more information.