public class TypeMismatchNamingException extends NamingException
JndiTemplate.lookup(String, Class)
,
Serialized FormremainingName, resolvedName, resolvedObj, rootException
Constructor and Description |
---|
TypeMismatchNamingException(String jndiName,
Class<?> requiredType,
Class<?> actualType)
Construct a new TypeMismatchNamingException,
building an explanation text from the given arguments.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getActualType()
Return the actual type that the lookup returned, if available.
|
Class<?> |
getRequiredType()
Return the required type for the lookup, if available.
|
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public TypeMismatchNamingException(String jndiName, Class<?> requiredType, Class<?> actualType)
jndiName
- the JNDI namerequiredType
- the required type for the lookupactualType
- the actual type that the lookup returned