public static class ResourceMap.InjectFieldException extends RuntimeException
ResourceMap.injectFields(java.lang.Object) when
an error occurs while attempting to set a field (a field that
had been marked with @Resource).| Constructor and Description |
|---|
InjectFieldException(String msg,
Field field,
Object target,
String key)
Constructs an instance of this class with some useful information
about the failure.
|
| Modifier and Type | Method and Description |
|---|---|
Field |
getField()
Return the Field whose value couldn't be set.
|
String |
getKey()
Returns the type of the name of resource for which lookup failed.
|
Object |
getTarget()
Return the Object whose Field we were attempting to set
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InjectFieldException(String msg, Field field, Object target, String key)
msg - the detail messagefield - the Field we were attempting to settarget - the object whose field we were attempting to setkey - the name of the resourcepublic Field getField()
public Object getTarget()
public String getKey()
Copyright © 2009–2016. All rights reserved.