January 2000
Intermediate to advanced
672 pages
21h 46m
English
If the database doesn’t support the functionality required by the method, the interface should throw an exception in case the method is used.
The preferred approach is to not implement the method and thus have
Python generate an AttributeError in case the
method is requested. This allows the programmer to check for database
capabilities using the standard hasattr()
function.
For some dynamically configured interfaces, it may not be
appropriate to require dynamically making the method available. These
interfaces should then raise a NotSupportedError to
indicate the inability to perform the rollback when the method is
invoked.
Read now
Unlock full access