From a7a1e11a3d1f32e71ea24596fec6645ecd669419 Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Thu, 19 Jan 2017 16:21:07 -0500 Subject: java:UserException metadata for both local and remote operations --- cpp/src/slice2java/Gen.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp/src/slice2java/Gen.h') diff --git a/cpp/src/slice2java/Gen.h b/cpp/src/slice2java/Gen.h index 5e6046bcd85..11c7d0f7e45 100644 --- a/cpp/src/slice2java/Gen.h +++ b/cpp/src/slice2java/Gen.h @@ -70,9 +70,10 @@ protected: const std::string&); // - // Generate a throws clause containing only non-local exceptions. + // Generate a throws clause containing only checked exceptions. + // op is provided only when we want to check for the java:UserException metadata // - void writeThrowsClause(const std::string&, const ExceptionList&); + void writeThrowsClause(const std::string&, const ExceptionList&, const OperationPtr& op = 0); // // Generate code to compute a hash code for a type. -- cgit v1.2.3