| 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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
|
| |||||||||||
Constructs a new EnumConstantNotPresentException with the current
stack trace and a detail message based on the specified enum type and
missing constant name.
| Parameters | |
|---|---|
enumType |
Class:
the enum type. |
constantName |
String:
the missing constant name.
|
Gets the name of the missing constant.
| Returns | |
|---|---|
String |
the name of the constant that has not been found in the enum type. |