com.dyuproject.protostuff
Class UninitializedMessageException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.dyuproject.protostuff.UninitializedMessageException
- All Implemented Interfaces:
- java.io.Serializable
public final class UninitializedMessageException
- extends java.lang.RuntimeException
Thrown when attempting to build a protocol message that is missing required
fields. This is a RuntimeException because it normally represents
a programming error: it happens when some code which constructs a message
fails to set all the fields.
- Author:
- kenton@google.com Kenton Varda, David Yu
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
targetMessage
public final java.lang.Object targetMessage
targetSchema
public final Schema<?> targetSchema
UninitializedMessageException
public UninitializedMessageException(Message<?> targetMessage)
UninitializedMessageException
public UninitializedMessageException(java.lang.Object targetMessage,
Schema<?> targetSchema)
UninitializedMessageException
public UninitializedMessageException(java.lang.String msg,
Message<?> targetMessage)
UninitializedMessageException
public UninitializedMessageException(java.lang.String msg,
java.lang.Object targetMessage,
Schema<?> targetSchema)
getTargetMessage
public <T> T getTargetMessage()
getTargetSchema
public <T> Schema<T> getTargetSchema()
Copyright © 2009-2014. All Rights Reserved.