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. |
As of 12.0.1.3804 UltraLiteJ for Android has APIs to get error parameters from ULjException's. Thanks. Thank you guys! =)
(26 Oct '12, 11:32)
Alex
|
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. We're contructing a product to be used mainly with the Russian, English and Portuguese (Brazil) languages, but it supposed to support multilanguages in runtime. Is there any plan to release this functionality in UltraliteJ?
(28 May '12, 07:52)
Alex
Replies hidden
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.
(28 May '12, 08:05)
Volker Barth
1
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.
(28 May '12, 13:45)
Andy Quick
Replies hidden
That feature will help a lot! Tks, Andy. We'll be waiting for it then.
(31 May '12, 16:53)
Alex
|