TrsServer - Fatal Exception
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
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
This discussion has been closed.
Comments
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
This was what I wanted to know.
Regards,
Mariella