1 package edu.jiangxin.apktoolbox.convert.protobuf.supervised;
2
3 import com.google.protobuf.InvalidProtocolBufferException;
4
5 import java.util.Objects;
6
7
8
9
10
11
12
13 @SuppressWarnings("SerializableHasSerializationMethods")
14 final class UncheckedInvalidProtocolBufferException extends RuntimeException {
15
16 private static final long serialVersionUID = 4733167503348537421L;
17
18
19
20
21
22
23
24 UncheckedInvalidProtocolBufferException(final String message, final InvalidProtocolBufferException cause) {
25 super(message, Objects.requireNonNull(cause));
26 }
27
28
29
30
31
32
33 UncheckedInvalidProtocolBufferException(final InvalidProtocolBufferException cause) {
34 super(Objects.requireNonNull(cause));
35 }
36
37 @Override
38 public synchronized InvalidProtocolBufferException getCause() {
39 return (InvalidProtocolBufferException) super.getCause();
40 }
41 }