Removing database from vServer // errors

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Sep 14 09:26:06 CDT 2004


On 9/13/04 10:04 PM, "Kevin Windham" <kevo at gatorgraphics.com> wrote:

> 
> On Sep 13, 2004, at 1:39 PM, Igor Gomon wrote:
>>  Also (at least in C++) method UnregisterDatabase() returns boolean,
>> indicating whether database is actually unregistered or not or is it
>> just marked.
>> If there was any error raised during unregister process then you
>> should get it (in C++ exception is raised but in RB you should use
>> usual way to check for last operation success - I mean
>> Valentina.GetLastError() or something like this - I don't remember).
> 
> I cannot find a way to catch an error from the unregisterDatabase
> method. It doesn't appear to have a return in the docs, and there
> doesn't appear to be an ErrNumber property or getError function on the
> server object. There is a property for the database object, but I don't
> see how that can apply in this case.
> 
> Maybe I'm wrong, or this just hasn't been implemented yet.

You need check db.errNumber.


V4RB 1.x model of last error code act in fact like errCode is global.
Although we give API as db.err


In 2.0 we have exceptions instead so model become 100% logical.


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list