commit | 5f723cd53980f395a92c438790a127cbd5699d90 | [log] [tgz] |
---|---|---|
author | Jens Geyer <jensg@apache.org> | Tue Jan 10 21:57:48 2017 +0100 |
committer | Jens Geyer <jensg@apache.org> | Wed Jan 11 20:50:38 2017 +0100 |
tree | dced9178d553251f180c29b4c10197cd55267445 | |
parent | 4f710aa4f47e051d41c863aa7aa9239dab5b9636 [diff] [blame] |
THRIFT-4024 Skip() should throw on unknown data types Client: C#, NETCore, Haxe, Delphi, Go Patch: Jens Geyer This closes #1155
diff --git a/lib/delphi/src/Thrift.Protocol.pas b/lib/delphi/src/Thrift.Protocol.pas index 7ff2eae..9ea28de 100644 --- a/lib/delphi/src/Thrift.Protocol.pas +++ b/lib/delphi/src/Thrift.Protocol.pas
@@ -823,7 +823,7 @@ end; else - ASSERT( FALSE); // any new types? + raise TProtocolExceptionInvalidData.Create('Unexpected type '+IntToStr(Ord(type_))); end; end;