cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the parameters from an ULjException in UltraliteJ for Android?

Former Member
3,098

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

As of 12.0.1.3804 UltraLiteJ for Android has APIs to get error parameters from ULjException's.

Thanks.

Former Member
0 Kudos

Thank you guys! 😃

Answers (1)

Answers (1)

Former Member

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.

Former Member
0 Kudos

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?

VolkerBarth
Contributor
0 Kudos

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.

Former Member

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.

Former Member
0 Kudos

That feature will help a lot!

Tks, Andy. We'll be waiting for it then.