Example usage for org.apache.commons.math3.exception.util LocalizedFormats UNKNOWN_PARAMETER

List of usage examples for org.apache.commons.math3.exception.util LocalizedFormats UNKNOWN_PARAMETER

Introduction

In this page you can find the example usage for org.apache.commons.math3.exception.util LocalizedFormats UNKNOWN_PARAMETER.

Prototype

LocalizedFormats UNKNOWN_PARAMETER

To view the source code for org.apache.commons.math3.exception.util LocalizedFormats UNKNOWN_PARAMETER.

Click Source Link

Usage

From source file:org.orekit.propagation.conversion.NumericalPropagatorBuilder.java

/** {@inheritDoc} */
public void setFreeParameters(final Collection<String> parameters) throws IllegalArgumentException {
    freeParameters = new ArrayList<String>();
    for (String name : parameters) {
        if (!isSupported(name)) {
            throw OrekitException.createIllegalArgumentException(LocalizedFormats.UNKNOWN_PARAMETER, name);
        }/*from w ww.  ja v a 2 s  .  com*/
    }
    freeParameters.addAll(parameters);
}