Skip to content

Most visited

Recently visited

navigation
Added in API level 1

TypeNotPresentException

public class TypeNotPresentException
extends RuntimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.lang.TypeNotPresentException


Thrown when a program tries to access a class, interface, enum or annotation type through a string that contains the type's name and the type cannot be found. This exception is an unchecked alternative to ClassNotFoundException.

Summary

Public constructors

TypeNotPresentException(String typeName, Throwable cause)

Constructs a new TypeNotPresentException with the current stack trace, a detail message that includes the name of the type that could not be found and the Throwable that caused this exception.

Public methods

String typeName()

Gets the fully qualified name of the type that could not be found.

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

TypeNotPresentException

Added in API level 1
TypeNotPresentException (String typeName, 
                Throwable cause)

Constructs a new TypeNotPresentException with the current stack trace, a detail message that includes the name of the type that could not be found and the Throwable that caused this exception.

Parameters
typeName String: the fully qualified name of the type that could not be found.
cause Throwable: the optional cause of this exception, may be null.

Public methods

typeName

Added in API level 1
String typeName ()

Gets the fully qualified name of the type that could not be found.

Returns
String the name of the type that caused this exception.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.