spring-framework / org.springframework.jndi / TypeMismatchNamingException

TypeMismatchNamingException

open class TypeMismatchNamingException : NamingException

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

Author
Juergen Hoeller

Since
1.2.8

See Also
JndiTemplate#lookup(String, Class)

Constructors

<init>

TypeMismatchNamingException(jndiName: String, requiredType: Class<*>, actualType: Class<*>)

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

Functions

getActualType

fun getActualType(): Class<*>

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

getRequiredType

fun getRequiredType(): Class<*>

Return the required type for the lookup, if available.