Class FeatureInstantiationException

All Implemented Interfaces:
Serializable

public class FeatureInstantiationException extends IllegalStateException
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 Details

    • FeatureInstantiationException

      public FeatureInstantiationException()
      Creates an exception with no message.
    • FeatureInstantiationException

      public FeatureInstantiationException(String message)
      Creates an exception with the specified message.
      Parameters:
      message - the detail message, saved for later retrieval by the Throwable.getMessage() method.
    • FeatureInstantiationException

      public FeatureInstantiationException(String message, Throwable cause)
      Creates an exception with the specified message and cause.
      Parameters:
      message - the detail message, saved for later retrieval by the Throwable.getMessage() method.
      cause - the cause, saved for later retrieval by the Throwable.getCause() method.