| Index: third_party/protobuf/java/src/main/java/com/google/protobuf/ServiceException.java
|
| diff --git a/third_party/protobuf/python/google/protobuf/internal/more_extensions.proto b/third_party/protobuf/java/src/main/java/com/google/protobuf/ServiceException.java
|
| similarity index 76%
|
| copy from third_party/protobuf/python/google/protobuf/internal/more_extensions.proto
|
| copy to third_party/protobuf/java/src/main/java/com/google/protobuf/ServiceException.java
|
| index e2d97010450d32f2d1dd7b3ec0d2d05bf93435cb..cde669d6af8f2b12e51000c6f3df40027b29c2ed 100644
|
| --- a/third_party/protobuf/python/google/protobuf/internal/more_extensions.proto
|
| +++ b/third_party/protobuf/java/src/main/java/com/google/protobuf/ServiceException.java
|
| @@ -28,31 +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: robinson@google.com (Will Robinson)
|
| -
|
| -
|
| -package google.protobuf.internal;
|
| -
|
| -
|
| -message TopLevelMessage {
|
| - optional ExtendedMessage submessage = 1;
|
| -}
|
| -
|
| -
|
| -message ExtendedMessage {
|
| - extensions 1 to max;
|
| -}
|
| -
|
| -
|
| -message ForeignMessage {
|
| - optional int32 foreign_message_int = 1;
|
| -}
|
| -
|
| -
|
| -extend ExtendedMessage {
|
| - optional int32 optional_int_extension = 1;
|
| - optional ForeignMessage optional_message_extension = 2;
|
| -
|
| - repeated int32 repeated_int_extension = 3;
|
| - repeated ForeignMessage repeated_message_extension = 4;
|
| +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;
|
| +
|
| + public ServiceException(final String message) {
|
| + super(message);
|
| + }
|
| +
|
| + public ServiceException(final Throwable cause) {
|
| + super(cause);
|
| + }
|
| +
|
| + public ServiceException(final String message, final Throwable cause) {
|
| + super(message, cause);
|
| + }
|
| }
|
|
|