Home Server

TrsServer - Fatal Exception

edited March 2005 in Server
When the communication between the report server and our application server
providing the database is broken, a TrsServer - Fatal Exception occurs.

After this exception, the server does not listen anymore, and the report
server needs to be restarted.

Is there a way to catch the exception, send something sensible to the client
and handle it while the server keeps on listening?

Thanks in advance,
Mariella

Comments

  • edited March 2005

    Try to trap the exception and re-raise it as a descendant of
    EReportBuilderError. See ppTypes.pas for the desclaration of the Exception
    types. For a database error I would use EDataError. You could place some
    code in the DataModule OnCreate event.


    example:

    uses
    ppTypes;

    try
    myADOConnection.Connected := True;
    except
    raise EDataError.Create('ADOConnection failed to connect:
    myADOConnection.Name');
    end;


    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited March 2005
    Thanks Nard,

    This was what I wanted to know.

    Regards,
    Mariella

This discussion has been closed.