public class

TypeMismatchNamingException

extends NamingException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ javax.naming.NamingException
         ↳ org.springframework.jndi.TypeMismatchNamingException

Class Overview

Exception thrown if a type mismatch is encountered for an object located in a JNDI environment. Thrown by JndiTemplate.

Summary

[Expand]
Inherited Fields
From class javax.naming.NamingException
Public Constructors
TypeMismatchNamingException(String jndiName, Class requiredType, Class actualType)
Construct a new TypeMismatchNamingException, building an explanation text from the given arguments.
TypeMismatchNamingException(String explanation)
Construct a new TypeMismatchNamingException.
Public Methods
final Class getActualType()
Return the actual type that the lookup returned, if available.
final Class getRequiredType()
Return the required type for the lookup, if available.
[Expand]
Inherited Methods
From class javax.naming.NamingException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public TypeMismatchNamingException (String jndiName, Class requiredType, Class actualType)

Construct a new TypeMismatchNamingException, building an explanation text from the given arguments.

Parameters
jndiName the JNDI name
requiredType the required type for the lookup
actualType the actual type that the lookup returned

public TypeMismatchNamingException (String explanation)

Construct a new TypeMismatchNamingException.

Parameters
explanation the explanation text

Public Methods

public final Class getActualType ()

Return the actual type that the lookup returned, if available.

public final Class getRequiredType ()

Return the required type for the lookup, if available.