You can use the ULjException and SQLCode classes to handle errors. Most UltraLite methods throw ULjException errors. You can use the ULjException.getErrorCode method to retrieve the SQLCode value assigned to the error. You can use the ULjException.toString method to obtain a descriptive text of the error. SQLCode errors are negative numbers indicating the error type, and can be referenced using constants such as ULjException.SQLE_INDEX_NOT_FOUND.
Discuss this page in DocCommentXchange.
|Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0|