加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090303143854/http://developer.android.com:80/reference/java/lang/EnumConstantNotPresentException.html
public class

EnumConstantNotPresentException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.lang.EnumConstantNotPresentException

Class Overview

Indicates that an enum constant does not exist for a particular name.

Summary

Public Constructors
EnumConstantNotPresentException(Class<? extends Enum> enumType, String constantName)

Constructs an instance for the passed enum and constant name.

Public Methods
String constantName()

The name of the constant missing.

Class<? extends Enum> enumType()

The enum type from which the constant name is missing.

[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public EnumConstantNotPresentException (Class<? extends Enum> enumType, String constantName)

Constructs an instance for the passed enum and constant name.

Parameters
enumType The enum type.
constantName The missing constant name.

Public Methods

public String constantName ()

The name of the constant missing.

Returns
  • A String instance.

public Class<? extends Enum> enumType ()

The enum type from which the constant name is missing.

Returns
  • A Class instance.