1
0
mirror of synced 2024-09-18 18:06:09 +00:00
x2log/X2Log.Exception.Default.pas
Mark van Renswoude 6d5355e0b6 Added: support for binary details
Added: Save button for Monitor Form
2014-05-30 12:51:01 +00:00

31 lines
661 B
ObjectPascal

unit X2Log.Exception.Default;
interface
uses
System.SysUtils,
X2Log.Intf;
type
TX2LogDefaultExceptionStrategy = class(TInterfacedObject, IX2LogExceptionStrategy)
public
{ IX2LogExceptionStrategy }
procedure Execute(AException: Exception; var AMessage: string; var ADetails: IX2LogDetails); virtual;
end;
implementation
{ TX2LogDefaultExceptionStrategy }
procedure TX2LogDefaultExceptionStrategy.Execute(AException: Exception; var AMessage: string; var ADetails: IX2LogDetails);
begin
if Length(AMessage) > 0 then
AMessage := AMessage + ': ';
AMessage := AMessage + AException.Message;
end;
end.