Package com.google.protobuf
Class Descriptors.DescriptorValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.google.protobuf.Descriptors.DescriptorValidationException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Descriptors
public static class Descriptors.DescriptorValidationException extends java.lang.Exception
Thrown when building descriptors fails because the source DescriptorProtos are not valid.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
description
private java.lang.String
name
private Message
proto
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description private
DescriptorValidationException(Descriptors.FileDescriptor problemDescriptor, java.lang.String description)
private
DescriptorValidationException(Descriptors.GenericDescriptor problemDescriptor, java.lang.String description)
private
DescriptorValidationException(Descriptors.GenericDescriptor problemDescriptor, java.lang.String description, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
Gets a human-readable description of the error.Message
getProblemProto()
Gets the protocol message representation of the invalid descriptor.java.lang.String
getProblemSymbolName()
Gets the full name of the descriptor where the error occurred.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
name
private final java.lang.String name
-
proto
private final Message proto
-
description
private final java.lang.String description
-
-
Constructor Detail
-
DescriptorValidationException
private DescriptorValidationException(Descriptors.GenericDescriptor problemDescriptor, java.lang.String description)
-
DescriptorValidationException
private DescriptorValidationException(Descriptors.GenericDescriptor problemDescriptor, java.lang.String description, java.lang.Throwable cause)
-
DescriptorValidationException
private DescriptorValidationException(Descriptors.FileDescriptor problemDescriptor, java.lang.String description)
-
-
Method Detail
-
getProblemSymbolName
public java.lang.String getProblemSymbolName()
Gets the full name of the descriptor where the error occurred.
-
getProblemProto
public Message getProblemProto()
Gets the protocol message representation of the invalid descriptor.
-
getDescription
public java.lang.String getDescription()
Gets a human-readable description of the error.
-
-