on 2012 May 24 3:55 PM
Hello,
I've got to retrieve the parameters of a Ultralite Exception, but there is no method in the ULjException object to help me with it.
Using the Ultralite API for Object-C, I can use the following code:
ulError->GetSQLCode(); ulError->GetParameterCount(); ulError->GetParameter(i, (char*)NULL, 0);
How could I do this using the UltraliteJ for Android?
Ps: I have to get the parameters of the exception because so I can translate the exception message to others languages.
Request clarification before answering.
As of 12.0.1.3804 UltraLiteJ for Android has APIs to get error parameters from ULjException's.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Alex,
UltraLiteJ supports internationalized exception messages, unlike UltraLite C. The supported locales are ZH, JA, DE, FR, and EN. The parameters are substituted into the ULjException message by UltraLiteJ - they are typically non-translatable entities such as numbers or table names. Hence, there are no APIs to get the parameters of exception messages in UltraLiteJ.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just a very wild guess: Does the SQL Anywhere DBLANG tool have an influence on the language of messages and other language-specifics in UltraLite/UlraLiteJ, too? (I just don't know...)
Cf. this FAQ.
Sorry, dblang does not work with UltraLiteJ - localized messages are contained in the Jar, and extracted based on the current locale.
There are no plans at this time to support other languages in UltraLiteJ. We will take under consideration the request for APIs to get parameters of exception messages.
User | Count |
---|---|
47 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.