The Error class has the following methods:
getDescription retrieves the description of an Error object.
getNativeError indicates the provider-specific error code for a given Error object.
getNumber indicates the number that uniquely identifies an Error object.
getSource indicates the name of the object or application that originally generated an error.
getSQLState indicates the SQL state for a given Error object.