Package com.google.protobuf
Class Descriptors.DescriptorValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.google.protobuf.Descriptors.DescriptorValidationException
- All Implemented Interfaces:
Serializable
- Enclosing class:
Descriptors
Thrown when building descriptors fails because the source DescriptorProtos are not valid.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
DescriptorValidationException
(Descriptors.FileDescriptor problemDescriptor, String description) private
DescriptorValidationException
(Descriptors.GenericDescriptor problemDescriptor, String description) private
DescriptorValidationException
(Descriptors.GenericDescriptor problemDescriptor, String description, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionGets a human-readable description of the error.Gets the protocol message representation of the invalid descriptor.Gets the full name of the descriptor where the error occurred.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
name
-
proto
-
description
-
-
Constructor Details
-
DescriptorValidationException
private DescriptorValidationException(Descriptors.GenericDescriptor problemDescriptor, String description) -
DescriptorValidationException
private DescriptorValidationException(Descriptors.GenericDescriptor problemDescriptor, String description, Throwable cause) -
DescriptorValidationException
private DescriptorValidationException(Descriptors.FileDescriptor problemDescriptor, String description)
-
-
Method Details
-
getProblemSymbolName
Gets the full name of the descriptor where the error occurred. -
getProblemProto
Gets the protocol message representation of the invalid descriptor. -
getDescription
Gets a human-readable description of the error.
-