Index: third_party/protobuf/java/src/main/java/com/google/protobuf/ServiceException.java |
diff --git a/third_party/protobuf/src/google/protobuf/unittest_import_public.proto b/third_party/protobuf/java/src/main/java/com/google/protobuf/ServiceException.java |
similarity index 74% |
copy from third_party/protobuf/src/google/protobuf/unittest_import_public.proto |
copy to third_party/protobuf/java/src/main/java/com/google/protobuf/ServiceException.java |
index ea5d1b13fea77a432cecc0980664c020159d108a..00d5707523523cb3620a764b9fd36cf753797549 100644 |
--- a/third_party/protobuf/src/google/protobuf/unittest_import_public.proto |
+++ b/third_party/protobuf/java/src/main/java/com/google/protobuf/ServiceException.java |
@@ -1,6 +1,6 @@ |
// Protocol Buffers - Google's data interchange format |
// Copyright 2008 Google Inc. All rights reserved. |
-// http://code.google.com/p/protobuf/ |
+// https://developers.google.com/protocol-buffers/ |
// |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
@@ -28,13 +28,25 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-// Author: liujisi@google.com (Pherl Liu) |
+package com.google.protobuf; |
+/** |
+ * Thrown by blocking RPC methods when a failure occurs. |
+ * |
+ * @author cpovirk@google.com (Chris Povirk) |
+ */ |
+public class ServiceException extends Exception { |
+ private static final long serialVersionUID = -1219262335729891920L; |
-package protobuf_unittest_import; |
+ public ServiceException(final String message) { |
+ super(message); |
+ } |
-option java_package = "com.google.protobuf.test"; |
+ public ServiceException(final Throwable cause) { |
+ super(cause); |
+ } |
-message PublicImportMessage { |
- optional int32 e = 1; |
+ public ServiceException(final String message, final Throwable cause) { |
+ super(message, cause); |
+ } |
} |