5. Working with a Database : Handling Database Errors : How You Can Use LongByteObject and LongVCharObject Methods
 
Share this page                  
How You Can Use LongByteObject and LongVCharObject Methods
The LongByteObject and LongVCharObject system class methods that access the database (FetchFromDB and UpdateInDB) indicate errors in the following ways:
The return value is set to a nonzero error code if the method does not execute successfully.
The DBSessionObject attributes ErrorNumber and DBMSError are set to the appropriate error number if a DBMS error occurs during the execution of the method.