src/main/java/ucar/geoapi/NetcdfParameter.java
private static InvalidParameterValueException invalidValue(
            final Parameter parameter, final Object value)
    {
        final String name = parameter.getName();
        return new InvalidParameterValueException("Can not convert '" + name + "' from type " +
                value.getClass().getSimpleName() + " to type " + getValueClass(parameter).getSimpleName() + '.',
                name, value);
    }
/**
     * Returns the exception to throw for a setter method invoked with a parameter of the wrong type.
     *
     * @param  parameter  the netCDF parameter.
     * @param  value      the value given by the user.
     * @return the exception to throw.
     */
Returns the exception to throw for a setter method invoked with a parameter of the wrong type.
@param  parameter  the netCDF parameter.
@param  value      the value given by the user.
@return the exception to throw.
Returns the exception to throw for a setter method invoked with a parameter of the wrong type . @param parameter the netCDF parameter . @param value the value given by the user . @return the exception to throw .
private static InvalidParameterValueException invalidValue(
            final Parameter parameter, final Object value)
    {
        final String name = parameter.getName();
        return new InvalidParameterValueException("Can not convert '" + name + "' from type " +
                value.getClass().getSimpleName() + " to type " + getValueClass(parameter).getSimpleName() + '.',
                name, value);
    }
private static InvalidParameterValueException invalidValue ( final Parameter parameter , final Object value ) { final String name = parameter . getName ( ) ; return new InvalidParameterValueException ( "Can not convert '" + name + "' from type " + value . getClass ( ) . getSimpleName ( ) + " to type " + getValueClass ( parameter ) . getSimpleName ( ) + '.' , name , value ) ; }
Returns the exception to throw for a setter method invoked with a parameter of the wrong type.
Returns the exception to throw for a setter method invoked with a parameter of the wrong type .