Object
Throwable
Exception
RuntimeException
IllegalStateException
FeatureInstantiationException
- All Implemented Interfaces:
Serializable
Thrown when
FeatureType.newInstance()
is invoked but the feature cannot be instantiated.
The instantiation can fail for a variety of reasons including but not limited to:
- the feature type is abstract,
- the feature type definition is incomplete.
Analogy with Java reflection:
if we compare
FeatureType
to Class
and Feature
to Object
in the Java language,
then this exception is equivalent to InstantiationException
.- Since:
- 3.1
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates an exception with no message.FeatureInstantiationException
(String message) Creates an exception with the specified message.FeatureInstantiationException
(String message, Throwable cause) Creates an exception with the specified message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FeatureInstantiationException
public FeatureInstantiationException()Creates an exception with no message. -
FeatureInstantiationException
Creates an exception with the specified message.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.
-
FeatureInstantiationException
Creates an exception with the specified message and cause.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.cause
- the cause, saved for later retrieval by theThrowable.getCause()
method.
-