Package org.opengis.feature
Class FeatureInstantiationException
- Object
 - 
- Throwable
 - 
- Exception
 - 
- RuntimeException
 - 
- IllegalStateException
 - 
- FeatureInstantiationException
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 Serializable
public class FeatureInstantiationException extends IllegalStateException
Thrown whenFeatureType.newInstance()is invoked but the feature can not 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 compareFeatureTypetoClassandFeaturetoObjectin the Java language, then this exception is equivalent toInstantiationException.- Since:
 - 3.1
 - See Also:
 FeatureType.newInstance(), Serialized Form
 
- 
- 
Constructor Summary
Constructors Constructor Description FeatureInstantiationException()Creates 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 Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
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 theThrowable.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 theThrowable.getMessage()method.cause- the cause, saved for later retrieval by theThrowable.getCause()method.
 
 - 
 
 -