Top Description Fields Constructors Methods
com.thoughtworks.xstream.converters.reflection

public Class MissingFieldException

extends ObjectAccessException
Class Inheritance

Deprecated

as a consequence of ObjectAccessException being deprecated. See corresponding docs for further information.

Indicates a missing field or property creating an object.
Authors
Nikita Levyankov, Joerg Schaible
Since
1.4.2

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
MissingFieldException(final String
the name of the class missing the field
className
,
final String
the name of the missed field
fieldName
)

Construct a MissingFieldException.

Method Summary

Modifier and TypeMethod and Description
protected String

Returns:

the class name
getClassName
()

Retrieve the name of the class with the missing field.

public String

Returns:

the field name
getFieldName
()

Retrieve the name of the missing field.

Field Detail

classNameback to summary
private final String className
fieldNameback to summary
private final String fieldName

Constructor Detail

MissingFieldExceptionback to summary
public MissingFieldException(final String className, final String fieldName)

Construct a MissingFieldException.

Parameters
className:String

the name of the class missing the field

fieldName:String

the name of the missed field

Since
1.4.2

Method Detail

getClassNameback to summary
protected String getClassName()

Retrieve the name of the class with the missing field.

Returns:String

the class name

Since
1.4.2
getFieldNameback to summary
public String getFieldName()

Retrieve the name of the missing field.

Returns:String

the field name

Since
1.4.2