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 © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |