src/main/java/ucar/geoapi/NetcdfParameter.java
private static InvalidParameterTypeException invalidType(
            final Parameter parameter, final Class<?> requested)
    {
        final String name = parameter.getName();
        return new InvalidParameterTypeException("Can not convert '" + name +
                "' from type " + getValueClass(parameter).getSimpleName() + " to type " +
                requested.getSimpleName() + '.', name);
    }
/**
     * Returns the exception to throw for a getter method invoked with a parameter of the wrong type.
     *
     * @param  parameter  the netCDF parameter.
     * @param  requested  the requested type.
     * @return the exception to throw.
     */
Returns the exception to throw for a getter method invoked with a parameter of the wrong type.
@param  parameter  the netCDF parameter.
@param  requested  the requested type.
@return the exception to throw.
Returns the exception to throw for a getter method invoked with a parameter of the wrong type . @param parameter the netCDF parameter . @param requested the requested type . @return the exception to throw .
private static InvalidParameterTypeException invalidType(
            final Parameter parameter, final Class<?> requested)
    {
        final String name = parameter.getName();
        return new InvalidParameterTypeException("Can not convert '" + name +
                "' from type " + getValueClass(parameter).getSimpleName() + " to type " +
                requested.getSimpleName() + '.', name);
    }
private static InvalidParameterTypeException invalidType ( final Parameter parameter , final Class < ? > requested ) { final String name = parameter . getName ( ) ; return new InvalidParameterTypeException ( "Can not convert '" + name + "' from type " + getValueClass ( parameter ) . getSimpleName ( ) + " to type " + requested . getSimpleName ( ) + '.' , name ) ; }
Returns the exception to throw for a getter method invoked with a parameter of the wrong type.
Returns the exception to throw for a getter method invoked with a parameter of the wrong type .