RegisterIgnoreException

<< Click to Display Table of Contents >>

Navigation:  Classes > TIWExceptionLogger > Methods >

RegisterIgnoreException

This method registers exception classes to be ignored by the exception logger. When an exception of a certain class is raised and this class was previously registered, the ExceptionLogger will ignore it and no log will be generated.

 

SIGNATURE=IWExceptionLogger.TIWExceptionLogger.RegisterIgnoreException@ExceptClass

 

ETYPE=Method

 

Declaration:

Delphi:

public procedure RegisterIgnoreException(ExceptionClass: ExceptClass);

C++:

void public: __fastcall RegisterIgnoreException(ExceptClass ExceptionClass);

 

Description: This is RegisterIgnoreException, a member of class TIWExceptionLogger.

 

Example:

procedure TIWServerController.IWServerControllerBaseConfig(Sender: TObject);

begin

// tells the ExceptionLogger to ignore exceptions of class EConvertError

  ExceptionLogger.RegisterIgnoreException(EConvertError);

end;

 

Note: RegisterIgnoreException is thread safe and can be safely called by sessions.