View Javadoc
1   package edu.jiangxin.apktoolbox.convert.protobuf.supervised;
2   
3   /**
4    * Thrown when no suitable protobuf descriptor could be found in the {@link DescriptorCache}
5    * in order to decode the given binary protobuf message.
6    *
7    * @author Daniel Tischner {@literal <zabuza.dev@gmail.com>}
8    */
9   @SuppressWarnings("SerializableHasSerializationMethods")
10  public final class NoDescriptorFoundException extends RuntimeException {
11  
12  	private static final long serialVersionUID = -5797106115993481443L;
13  
14  	/**
15  	 * Creates an instance with a default message.
16  	 */
17  	public NoDescriptorFoundException() {
18  	}
19  
20  	/**
21  	 * Creates an instance with given error details.
22  	 *
23  	 * @param messageTypeName The name of the message type of the binary protobuf message that could not be decoded, can
24  	 *                        be null
25  	 */
26  	public NoDescriptorFoundException(final String messageTypeName) {
27  		super("No descriptor found for message type with name " + messageTypeName);
28  	}
29  }