Android Guides | Samples

Java.Lang.TypeNotPresentException Class

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.

See Also: TypeNotPresentException

Syntax

[Android.Runtime.Register("java/lang/TypeNotPresentException", DoNotGenerateAcw=true)]
public class TypeNotPresentException : RuntimeException

Remarks

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.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Java.Lang.TypeNotPresentException are listed below.

See Also: RuntimeException

Public Constructors

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.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

TypeName() : String
Gets the fully qualified name of the type that could not be found.