Class TypeMismatchNamingException

    • Constructor Detail

      • TypeMismatchNamingException

        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
    • Method Detail

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