Package org.opengis.feature
Class MultiValuedPropertyException
- Object
-
- Throwable
-
- Exception
-
- RuntimeException
-
- IllegalStateException
-
- MultiValuedPropertyException
-
- All Implemented Interfaces:
Serializable
public class MultiValuedPropertyException extends IllegalStateException
Thrown whenAttribute.getValue()
orFeatureAssociation.getValue()
is invoked on a property containing more than one value.Callers can avoid this exception by invoking the
getValues()
method instead thangetValue()
.- Since:
- 3.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MultiValuedPropertyException()
Creates an exception with no message.MultiValuedPropertyException(String message)
Creates an exception with the specified message.MultiValuedPropertyException(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
-
MultiValuedPropertyException
public MultiValuedPropertyException()
Creates an exception with no message.
-
MultiValuedPropertyException
public MultiValuedPropertyException(String message)
Creates an exception with the specified message.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.
-
MultiValuedPropertyException
public MultiValuedPropertyException(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.
-
-