Version: 6.3.1
Public Member Functions | Protected Member Functions

SalomeApp_ExceptionHandler Class Reference

#include <SalomeApp_ExceptionHandler.h>

Inheritance diagram for SalomeApp_ExceptionHandler:
Inheritance graph

Public Member Functions

 SalomeApp_ExceptionHandler (const bool)
virtual bool handle (QObject *, QEvent *)

Protected Member Functions

virtual bool handleSignals (QObject *, QEvent *)
bool internalHandle (QObject *, QEvent *)
void showMessage (const QString &, const QString &)

Constructor & Destructor Documentation

SalomeApp_ExceptionHandler::SalomeApp_ExceptionHandler ( const bool  floatSignal)

Constructor. Initialize by floatSignal.


Member Function Documentation

bool SalomeApp_ExceptionHandler::handle ( QObject o,
QEvent e 
) [virtual]

Try to call handleSignals( o, e ), catch and show error message.

Reimplemented from SUIT_ExceptionHandler.

References handleSignals(), and SUIT_ExceptionHandler.showMessage().

bool SalomeApp_ExceptionHandler::handleSignals ( QObject o,
QEvent e 
) [protected, virtual]

Try to call SUIT_ExceptionHandler.internalHandle(o, e), catch if failure.

References CASCatch_CATCH, CASCatch_TRY, Handle(), and SUIT_ExceptionHandler.internalHandle().

bool SUIT_ExceptionHandler::internalHandle ( QObject o,
QEvent e 
) [protected, inherited]

Checks: is internal handle on object o?

void SUIT_ExceptionHandler::showMessage ( const QString &  title,
const QString &  msg 
) [protected, inherited]

Show error message mgs, if application is not null.

References SUIT_MessageBox.critical().

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS