[fdo-dev] Exception messages

Mateusz Loskot mateusz at loskot.net
Mon Nov 6 10:45:24 EST 2006


Jack Lee wrote:
> Hi Mateusz,
> 
> Currently, in Linux, you need to set 
> 
> NLSPATH=/usr/local/fdo-3.2.0/nls/%N
> 
> so that the message catalog is used.

Jack,

I've had no idea about NLSPATH env for FDO.
After I set it, everything works well, thanks!

Please, could anyone update the Dev Guide or build instruction and add
information about NLSPATH for Linux users?
Thanks in advance!

> If this is not set, the default string is used. The following is an
> example of using the default string:
> 
> throw FdoSchemaException::Create(NlsMsgGet1(FDORDBMS_333, "Class '%1$ls'
> not found", value->GetText()));
> 
> If the default string is not set, then only the constant is displayed.
> The following is an example of not setting the default string.
> 
> FdoSchemaException* pNewException = FdoSchemaException::Create( 
> 	FdoSmError::NLSGetMessage(
> 		FDO_NLSID(FDOSM_221),
> 		pFeatSchema->GetName()
> 	),
> 	pException
> );

Thanks for this explanation.

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net




More information about the Fdo-internals mailing list