Name

TypeNotPresentException

Synopsis

This unchecked exception signals that a class file associated with a java.lang.reflect.Type could not be found. It typically results when a class depends on a type that has changed or been removed and indicates version skew that requires recompilation or code refactoring. This is essentially the generic type version of ClassNotFoundException.

java.lang.TypeNotPresentException

Figure 10-67. java.lang.TypeNotPresentException

public class TypeNotPresentException extends RuntimeException {
// Public Constructors
     public TypeNotPresentException(String typeName, Throwable cause);  
// Public Instance Methods
     public String typeName( );  
}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.