Documentation of 'org.opengis.parameter.InvalidParameterTypeException' Java class
InvalidParameterTypeException
org.opengis.parameter

Class InvalidParameterTypeException

  • All Implemented Interfaces:
    java.io.Serializable


    public class InvalidParameterTypeException
    extends java.lang.IllegalStateException
    Thrown when a parameter can't be cast to the requested type. For example this exception is thrown when ParameterValue.doubleValue(Unit) is invoked but the value is not convertible to a double.

    Note: This exception is of kind "illegal state" rather than "illegal argument" because it is not caused by a bad argument. It is rather a consequence of invoking the wrong zero-argument method.

    Since:
    GeoAPI 1.0
    See Also:
    ParameterValue.intValue(), ParameterValue.doubleValue(Unit), Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      InvalidParameterTypeException(java.lang.String message, java.lang.String parameterName)
      Creates an exception with the specified message and parameter name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getParameterName()
      Returns the parameter name.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InvalidParameterTypeException

        public InvalidParameterTypeException(java.lang.String message,
                                             java.lang.String parameterName)
        Creates an exception with the specified message and parameter name.
        Parameters:
        message - The detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
        parameterName - The parameter name.
    • Method Detail

      • getParameterName

        public java.lang.String getParameterName()
        Returns the parameter name.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.