org.springframework.jndi

## 类 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 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`

    - ### 从类继承的方法 java.lang.Throwable

      `addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### TypeMismatchNamingException

          public TypeMismatchNamingException(String jndiName,
                                             Class<?> requiredType,
                                             Class<?> actualType)

      Construct a new TypeMismatchNamingException, building an explanation text from the given arguments.
      参数:
        `jndiName` - the JNDI name
        `requiredType` - the required type for the lookup
        `actualType` - the actual type that the lookup returned

  - ### 方法详细资料

    - #### 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.