类 TypeMismatchNamingException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- javax.naming.NamingException
- org.springframework.jndi.TypeMismatchNamingException
- 所有已实现的接口:
Serializable
public class TypeMismatchNamingException extends NamingException
Exception thrown if a type mismatch is encountered for an object located in a JNDI environment. Thrown by JndiTemplate.- 从以下版本开始:
- 1.2.8
- 作者:
- Juergen Hoeller
- 另请参阅:
JndiTemplate.lookup(String, Class)
, 序列化表格
字段概要
从类继承的字段 javax.naming.NamingException
remainingName, resolvedName, resolvedObj, rootException
构造器概要
构造器 构造器 说明 TypeMismatchNamingException(String explanation)
已过时。as of Spring Framework 4.3.10TypeMismatchNamingException(String jndiName, Class<?> requiredType, Class<?> actualType)
Construct a new TypeMismatchNamingException, building an explanation text from the given arguments.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Class<?>
getActualType()
Return the actual type that the lookup returned, if available.Class<?>
getRequiredType()
Return the required type for the lookup, if available.从类继承的方法 javax.naming.NamingException
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
构造器详细资料
TypeMismatchNamingException
public TypeMismatchNamingException(String jndiName, Class<?> requiredType, Class<?> actualType)
Construct a new TypeMismatchNamingException, building an explanation text from the given arguments.- 参数:
jndiName
- the JNDI namerequiredType
- the required type for the lookupactualType
- the actual type that the lookup returned
TypeMismatchNamingException
@Deprecated public TypeMismatchNamingException(String explanation)
已过时。as of Spring Framework 4.3.10Construct a new TypeMismatchNamingException.- 参数:
explanation
- the explanation text
方法详细资料
getRequiredType
public final Class<?> getRequiredType()
Return the required type for the lookup, if available.
getActualType
public final Class<?> getActualType()
Return the actual type that the lookup returned, if available.