Android
java.lang
public class

java.lang.EnumConstantNotPresentException

java.lang.Object
java.lang.Throwable Serializable
java.lang.Exception
java.lang.RuntimeException
java.lang.EnumConstantNotPresentException

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.

Methods inherited from class java.lang.Throwable
Methods inherited from class java.lang.Object

Details

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.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56