2014-05-18 18:09:07 +00:00
|
|
|
unit X2Log.Exception.madExcept;
|
|
|
|
|
|
|
|
interface
|
|
|
|
uses
|
|
|
|
System.SysUtils,
|
|
|
|
|
|
|
|
X2Log.Intf,
|
|
|
|
X2Log.Exception.Default;
|
|
|
|
|
|
|
|
|
|
|
|
type
|
|
|
|
TX2LogmadExceptExceptionStrategy = class(TX2LogDefaultExceptionStrategy)
|
|
|
|
public
|
|
|
|
{ IX2LogExceptionStrategy }
|
2014-05-30 12:51:01 +00:00
|
|
|
procedure Execute(AException: Exception; var AMessage: string; var ADetails: IX2LogDetails); override;
|
2014-05-18 18:09:07 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
uses
|
2014-05-30 12:51:01 +00:00
|
|
|
madExcept,
|
|
|
|
|
|
|
|
X2Log.Details.Default;
|
2014-05-18 18:09:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
{ TX2LogmadExceptExceptionStrategy }
|
2014-05-30 12:51:01 +00:00
|
|
|
procedure TX2LogmadExceptExceptionStrategy.Execute(AException: Exception; var AMessage: string; var ADetails: IX2LogDetails);
|
2014-05-18 18:09:07 +00:00
|
|
|
begin
|
|
|
|
inherited Execute(AException, AMessage, ADetails);
|
|
|
|
|
2014-05-30 12:51:01 +00:00
|
|
|
ADetails := TX2LogStringDetails.CreateIfNotEmpty(madExcept.CreateBugReport(etNormal, AException));
|
2014-05-18 18:09:07 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|