Class ResourceMap.InjectFieldException

    • Constructor Summary

      Constructors 
      Constructor Description
      InjectFieldException​(java.lang.String msg, java.lang.reflect.Field field, java.lang.Object target, java.lang.String key)
      Constructs an instance of this class with some useful information about the failure.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.reflect.Field getField()
      Return the Field whose value couldn't be set.
      java.lang.String getKey()
      Returns the type of the name of resource for which lookup failed.
      java.lang.Object getTarget()
      Return the Object whose Field we were attempting to set
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

      • InjectFieldException

        public InjectFieldException​(java.lang.String msg,
                                    java.lang.reflect.Field field,
                                    java.lang.Object target,
                                    java.lang.String key)
        Constructs an instance of this class with some useful information about the failure.
        Parameters:
        msg - the detail message
        field - the Field we were attempting to set
        target - the object whose field we were attempting to set
        key - the name of the resource
    • Method Detail

      • getField

        public java.lang.reflect.Field getField()
        Return the Field whose value couldn't be set.
        Returns:
        the field whose value couldn't be set
      • getTarget

        public java.lang.Object getTarget()
        Return the Object whose Field we were attempting to set
        Returns:
        the Object whose Field we were attempting to set
      • getKey

        public java.lang.String getKey()
        Returns the type of the name of resource for which lookup failed.
        Returns:
        the resource name