The AdoException class has the following methods:
getErrorNumber retrieves the error number associated with the exception.