Class MissingFieldException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.thoughtworks.xstream.core.BaseException
com.thoughtworks.xstream.XStreamException
com.thoughtworks.xstream.converters.ErrorWritingException
com.thoughtworks.xstream.converters.reflection.ObjectAccessException
com.thoughtworks.xstream.converters.reflection.MissingFieldException
- All Implemented Interfaces:
ErrorWriter, Serializable
Indicates a missing field or property creating an object.
- Since:
- 1.4.2
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMissingFieldException(String className, String fieldName) Construct a MissingFieldException. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringRetrieve the name of the class with the missing field.Retrieve the name of the missing field.Methods inherited from class ErrorWritingException
add, get, getMessage, getShortMessage, keys, setMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
fieldName
-
className
-
-
Constructor Details
-
MissingFieldException
-
-
Method Details
-
getFieldName
Retrieve the name of the missing field.- Returns:
- the field name
- Since:
- 1.4.2
-
getClassName
Retrieve the name of the class with the missing field.- Returns:
- the class name
- Since:
- 1.4.2
-