java.lang.Object | ||||
↳ | java.lang.Throwable | |||
↳ | java.lang.Exception | |||
↳ | java.lang.RuntimeException | |||
↳ | java.lang.EnumConstantNotPresentException |
Thrown if an enum
constant does not exist for a particular name.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new
EnumConstantNotPresentException with the current
stack trace and a detail message based on the specified enum type and
missing constant name.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the name of the missing constant.
| |||||||||||
Gets the enum type for which the constant name is missing.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
|
Constructs a new EnumConstantNotPresentException
with the current
stack trace and a detail message based on the specified enum type and
missing constant name.
enumType | the enum type. |
---|---|
constantName | the missing constant name. |
Gets the name of the missing constant.
Gets the enum type for which the constant name is missing.