Class MissingFieldException

  • All Implemented Interfaces:
    ErrorWriter, java.io.Serializable

    public class MissingFieldException
    extends ObjectAccessException
    Indicates a missing field or property creating an object.
    Since:
    1.4.2
    Author:
    Nikita Levyankov, Joerg Schaible
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MissingFieldException​(java.lang.String className, java.lang.String fieldName)
      Construct a MissingFieldException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getClassName()
      Retrieve the name of the class with the missing field.
      java.lang.String getFieldName()
      Retrieve the name of the missing field.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MissingFieldException

        public MissingFieldException​(java.lang.String className,
                                     java.lang.String fieldName)
        Construct a MissingFieldException.
        Parameters:
        className - the name of the class missing the field
        fieldName - the name of the missed field
        Since:
        1.4.2
    • Method Detail

      • getFieldName

        public java.lang.String getFieldName()
        Retrieve the name of the missing field.
        Returns:
        the field name
        Since:
        1.4.2
      • getClassName

        protected java.lang.String getClassName()
        Retrieve the name of the class with the missing field.
        Returns:
        the class name
        Since:
        1.4.2