2014-05-18 18:09:07 +00:00
|
|
|
unit X2Log.Exception.Default;
|
|
|
|
|
|
|
|
interface
|
|
|
|
uses
|
|
|
|
System.SysUtils,
|
|
|
|
|
|
|
|
X2Log.Intf;
|
|
|
|
|
|
|
|
|
|
|
|
type
|
|
|
|
TX2LogDefaultExceptionStrategy = class(TInterfacedObject, IX2LogExceptionStrategy)
|
|
|
|
public
|
|
|
|
{ IX2LogExceptionStrategy }
|
2017-04-26 15:20:48 +00:00
|
|
|
procedure Execute(AException: Exception; out AMessage: string; AAddDetails: TX2LogExceptionDetailsProc); virtual;
|
2014-05-18 18:09:07 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
|
|
|
|
{ TX2LogDefaultExceptionStrategy }
|
2017-04-26 15:20:48 +00:00
|
|
|
procedure TX2LogDefaultExceptionStrategy.Execute(AException: Exception; out AMessage: string; AAddDetails: TX2LogExceptionDetailsProc);
|
2014-05-18 18:09:07 +00:00
|
|
|
begin
|
2017-04-26 15:20:48 +00:00
|
|
|
AMessage := AException.Message;
|
2014-05-18 18:09:07 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|