Wiki

Clone wiki

MadExcept AirBrake / Home

Welcome

To use this lib you just have to have the madexcept installed in your delphi and your application must be using it. After that follow the steps:

1- Add the libeay32.dll, ssleay32.dll and zlib1.dll to your output folder.

2- Add the unit HQ.MadExcept.Airbrake to your main form uses section.

3- Add the follow code in your formcreate event:

  TMadExceptAirBrake.Setup('exceptions.codebasehq.com', '<your codebase hq api-key>', '1.0.1 beta', OnAirBrakeSucess);

4- If necessary you can add an sucessfull event handler declaring it and using it that way:

  Tform1 = class(TForm)
   ...
  private
    procedure OnAirBrakeSucess(const NoticeProtocol: string);
   ...
  
  end;

  procedure Tform1.OnAirBrakeSucess(const NoticeProtocol: string);
  const
   SucessMessage = 'Your error notification was sucessfuly posted, your protocol number is: %s';
  begin
  Application.MessageBox(PChar(Format(SucessMessage, [NoticeProtocol])),'Sucess!', MB_OK+MB_ICONINFORMATION);
  end;

  //In your form create change it to:
  TMadExceptAirBrake.Setup('exceptions.codebasehq.com', '<your codebase hq api-key>', '1.0.1 beta', OnAirBrakeSucess);

Updated