Files
SingularityViewer/indra/llcommon
Aleric Inglewood 193010e947 Add THROW_[MF]ALERT[EC] (AIArgs, AIAlert, AIAlertCode, AIAlertPrefix, AIAlertLine)
A system to throw errors that allow for easy error reporting to the user
by showing a translated pop-up alert box with the error message.

The messages use strings.xml for translation and allow the usual
replacement args (ie [FILE] is replaced with a filename).

The exceptions can be cascaded, by adding more (translated) text
when caught and then re-throwing the result.

Macros are being used to support adding a function name prefix
to a message of the current function that the exception is thrown
from.

The syntax is:

  <macro>(<line>);		to show 'line'
  <macro>(<alert>, <line>);	to append 'line' to a caught alert.
  <macro>(<line>, <alert>);	to prepend 'line' to a caught alert.

  where <macro> is one of:
  THROW_ALERT, THROW_MALERT, THROW_FALERT, THROW_FMALERT,
  THROW_ALERTE, THROW_MALERTE, THROW_FALERTE, THROW_FMALERTE, where
  M = modal, F = Function name.
  and where <line> is one of:

  <xmldesc>
  <xmldesc>, AIArgs<args>

  where <xmldesc> is a string literal that will be looked up
  in strings.xml, and <args> is:

  (<key>, <replacement>)[<args>]

  There are more variations of the macros to throw an arbitrary
  class (append _CLASS), include an int code (append C) or
  to store the current errno as code (append E).

  For example, THROW_MALERTC(code, ...), or THROW_FALERT_CLASS(Foobar, ...),
  where the ... is the same as for the macros above.

Documentation and example usage has been added to aialert.h.
2013-11-05 03:01:47 +01:00
..
2012-02-10 01:37:43 +01:00
2013-03-23 22:22:38 +01:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2012-01-09 16:14:33 -05:00
2013-09-27 03:14:51 +02:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2013-10-31 03:31:12 +01:00
2013-10-01 13:43:45 +02:00
2012-08-09 07:00:51 +02:00
2010-04-02 02:48:44 -03:00
2011-07-15 00:21:38 -05:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2013-05-11 22:36:46 -04:00
2011-07-14 01:35:15 -05:00
2013-10-05 20:27:20 +02:00
2013-10-05 20:27:20 +02:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2013-03-27 00:56:28 +01:00
2010-04-02 02:48:44 -03:00
2011-06-07 21:35:10 -05:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2013-10-05 20:27:20 +02:00
2010-04-02 02:48:44 -03:00
2012-02-23 18:50:28 +01:00
2010-04-02 02:48:44 -03:00
2012-09-10 02:06:07 +02:00
2012-01-23 18:30:54 -06:00
2010-04-02 02:48:44 -03:00
2013-01-30 00:36:31 +01:00
2010-04-02 02:48:44 -03:00
2011-05-08 17:08:48 +02:00
2012-07-20 08:13:07 -04:00
2013-02-12 15:08:11 -06:00
2012-08-02 23:19:07 -04:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2013-11-05 03:01:46 +01:00
2013-11-05 03:01:46 +01:00
2013-10-31 02:38:23 +01:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2012-04-29 00:25:40 -04:00
2013-10-20 12:37:35 +02:00
2012-08-02 23:19:07 -04:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2012-01-23 18:30:54 -06:00
2012-01-23 18:30:54 -06:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2013-02-12 20:47:55 -06:00
2013-02-12 20:47:55 -06:00
2012-07-20 08:13:07 -04:00
2013-02-12 15:10:15 -06:00
2013-02-12 15:10:15 -06:00
2012-08-02 23:19:07 -04:00
2013-05-11 23:14:16 -04:00
2013-09-18 06:55:30 +02:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2011-02-22 18:24:17 -06:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2013-05-11 21:46:41 +02:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2011-07-13 04:35:38 -05:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00
2010-04-02 02:48:44 -03:00