Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.


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->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.

asked 24 May '12, 14:55

Alex's gravatar image

accept rate: 25%

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


permanent link

answered 11 Oct '12, 15:32

Andy%20Quick's gravatar image

Andy Quick
accept rate: 45%

Thank you guys! =)

(26 Oct '12, 11:32) 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.

permanent link

answered 25 May '12, 09:08

Andy%20Quick's gravatar image

Andy Quick
accept rate: 45%

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

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
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 24 May '12, 14:55

question was seen: 2,772 times

last updated: 26 Oct '12, 11:32