Daniele Teti 2022-11-24 07:42:03 +01:00
parent 1473beb937
commit b1f838ece9
2 changed files with 13 additions and 1 deletions

View File

@ -2801,7 +2801,7 @@ end;
constructor EMVCJSONRPCRemoteException.Create(const ErrCode: Integer; const ErrMessage: String);
begin
Create(ErrCode, ErrMessage);
Create(ErrCode, ErrMessage, TValue.Empty);
end;
constructor EMVCJSONRPCRemoteException.Create(const ErrCode: Integer; const ErrMessage: String;

View File

@ -46,6 +46,8 @@ type
procedure TestRequestWithMalformedJSON;
[Test]
procedure TestNotificationWithNoParameters;
[Test]
procedure TestIssue595;
end;
@ -56,6 +58,16 @@ implementation
uses MVCFramework.JSONRPC;
procedure TTestJSONRPC.TestIssue595;
begin
Assert.WillRaise(
procedure
begin
raise EMVCJSONRPCRemoteException.Create(100, 'ErrMessage');
end,
EMVCJSONRPCRemoteException);
end;
procedure TTestJSONRPC.TestNotificationWithNoParameters;
var
lReq: IJSONRPCRequest;