Package org.jdesktop.application
Class ResourceMap.InjectFieldException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jdesktop.application.ResourceMap.InjectFieldException
- All Implemented Interfaces:
Serializable
- Enclosing class:
ResourceMap
Unchecked exception thrown by
ResourceMap.injectFields(java.lang.Object)
when
an error occurs while attempting to set a field (a field that
had been marked with @Resource).- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInjectFieldException
(String msg, Field field, Object target, String key) Constructs an instance of this class with some useful information about the failure. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InjectFieldException
Constructs an instance of this class with some useful information about the failure.- Parameters:
msg
- the detail messagefield
- the Field we were attempting to settarget
- the object whose field we were attempting to setkey
- the name of the resource
-
-
Method Details
-
getField
Return the Field whose value couldn't be set.- Returns:
- the field whose value couldn't be set
-
getTarget
Return the Object whose Field we were attempting to set- Returns:
- the Object whose Field we were attempting to set
-
getKey
Returns the type of the name of resource for which lookup failed.- Returns:
- the resource name
-