Public Member Functions | |
InvalidProtocolBufferException | asInvalidProtocolBufferException () |
List< String > | getMissingFields () |
UninitializedMessageException (final List< String > missingFields) | |
UninitializedMessageException (final MessageLite message) | |
Static Private Member Functions | |
static String | buildDescription (final List< String > missingFields) |
Private Attributes | |
final List< String > | missingFields |
Static Private Attributes | |
static final long | serialVersionUID = -7466929953374883507L |
Thrown when attempting to build a protocol message that is missing required fields. This is a
because it normally represents a programming error: it happens when some code which constructs a message fails to set all the fields.
methods do not throw this; they throw an InvalidProtocolBufferException if required fields are missing, because it is not a programming error to receive an incomplete message. In other words,
should never be thrown by correct code, but
might be.
Definition at line 47 of file UninitializedMessageException.java.
|
inline |
Definition at line 50 of file UninitializedMessageException.java.
|
inline |
Definition at line 57 of file UninitializedMessageException.java.
|
inline |
Converts this exception to an InvalidProtocolBufferException. When a parsed message is missing required fields, this should be thrown instead of
.
Definition at line 78 of file UninitializedMessageException.java.
|
inlinestaticprivate |
Construct the description string for this exception.
Definition at line 83 of file UninitializedMessageException.java.
|
inline |
Get a list of human-readable names of required fields missing from this message. Each name is a full path to a field, e.g. "foo.bar[5].baz". Returns null if the lite runtime was used, since it lacks the ability to find missing fields.
Definition at line 69 of file UninitializedMessageException.java.
|
private |
Definition at line 62 of file UninitializedMessageException.java.
|
staticprivate |
Definition at line 48 of file UninitializedMessageException.java.