diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/Makefile.am | 1 | ||||
-rw-r--r-- | test/VoidMethExceptionsTest.thrift | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 2199f1e11..6bf12b813 100755 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -167,6 +167,7 @@ EXTRA_DIST = \ UnsafeTypes.thrift \ Service.thrift \ SpecificNameTest.thrift \ + VoidMethExceptionsTest.thrift \ partial/thrift_test_schema.thrift \ known_failures_Linux.json \ test.py \ diff --git a/test/VoidMethExceptionsTest.thrift b/test/VoidMethExceptionsTest.thrift new file mode 100644 index 000000000..fc759767f --- /dev/null +++ b/test/VoidMethExceptionsTest.thrift @@ -0,0 +1,13 @@ +namespace java thrift.test.voidmethexceptions + +exception TExampleException { + 1: required string message; +} + +service TAppService01 { + string returnString(1: string msg, 2: bool throwException) throws (1:TExampleException error); + void returnVoidThrows(1: string msg, 2: bool throwException) throws (1:TExampleException error); + void returnVoidNoThrowsRuntimeException(1: string msg, 2: bool throwException); + void returnVoidNoThrowsTApplicationException(1: string msg, 2: bool throwException); + oneway void onewayVoidNoThrows(1: string msg, 2: bool throwException); +} |