Link to my project

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Jun 14 00:46:48 CDT 2006


On 6/13/06 3:27 AM, "Matthew Jew" <mjew at icnc.com> wrote:

Hi Matthew, 

> I have the project working much better now... I think I do more
> things in the right order.
> 
> The problem I am having right now is this:
> 
> void DbValentinaBase::Create( I_Location_Ptr pLocation )
> {
> try 
> {
> DB->put_Location( pLocation );
> DB->put_Mode( DbMode( kDscDatBlbInd ) );
> DB->Create();
> }
> catch( xException& Err ) 
> {
> String Msg( Err.get_ErrorString() );
> 
> std::cout << "Valentina exception caught in
> DbValentinaBase::Create: \n";
> std::cout << "\tError code  : " << Err.get_ErrorCode() << "\n";
> std::cout << "\tError description: " << Msg.getBufferA()  << "\n";
> }
> }

I recommend to make single function

ProceedException( xException& Err )
{
    String Msg( Err.get_ErrorString() );

        std::cout << "Valentina exception caught in
DbValentinaBase::Create: \n";
        std::cout << "\tError code        : " << Err.get_ErrorCode()    <<
"\n";
        std::cout << "\tError description: " << Msg.getBufferA()        <<
"\n";

}

And in catch simple call it



-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list