[jsword-devel] I18N
Aleksander Rozman - Andy
jsword-devel@crosswire.org
Tue, 30 Dec 2003 13:25:56 +0100
At 12/30/2003, you wrote:
>Aleksander Rozman - Andy wrote:
>>>So JSword code looks like this:
>>>
>>> throw new BlahException(Msg.WRITE_FAIL);
>>Every thing can thrtow exception. If we read from resource file we get
>>null value then we can also throw Exception
>
>But anywhere in JSword where we use a user visible string, we use a Msg in
>place of String.
>
>So
>
> throw new BookException("No i18n here");
>
>Will not compile.
>
>Clearly swing uses string and not Msg, so there are places where we need
>to convert a Msg to a string but that is as easy as toString().
>
>Joe.
>
Method must state that BookException is thrown... (or just Exception if you
wish to throw more than one type of exception)...
>_______________________________________________
>jsword-devel mailing list
>jsword-devel@crosswire.org
>http://www.crosswire.org/mailman/listinfo/jsword-devel
**************************************************************************
* Aleksander Rozman - Andy * Fandoms: E2:EA, SAABer, Trekkie, Earthie *
* andy@kksonline.com * Sentinel, BH 90210, True's Trooper, *
* andy@atechnet.dhs.org * Heller's Angel, Questie, Legacy, PO5, *
* Maribor, Slovenia (Europe) * Profiler, Buffy (Slayerete), Pretender *
* ICQ-UIC: 4911125 *********************************************
* PGP key available * http://www.atechnet.dhs.org/~andy/ *
**************************************************************************