Java Code Examples for org.apache.commons.math3.exception.util.LocalizedFormats#SIMPLE_MESSAGE

The following examples show how to use org.apache.commons.math3.exception.util.LocalizedFormats#SIMPLE_MESSAGE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EmpiricalDistribution.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Computes the empirical distribution from the provided
 * array of numbers.
 *
 * @param in the input data array
 * @exception NullArgumentException if in is null
 * @throws MathIllegalStateException if an IOException occurs
 */
public void load(double[] in) throws NullArgumentException, MathIllegalStateException {
    DataAdapter da = new ArrayDataAdapter(in);
    try {
        da.computeStats();
        // new adapter for the second pass
        fillBinStats(new ArrayDataAdapter(in));
    } catch (IOException e) {
        throw new MathIllegalStateException(e, LocalizedFormats.SIMPLE_MESSAGE, e.getLocalizedMessage());
    }
    loaded = true;

}
 
Example 2
Source File: EmpiricalDistribution.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Computes the empirical distribution from the provided
 * array of numbers.
 *
 * @param in the input data array
 * @exception NullArgumentException if in is null
 */
public void load(double[] in) throws NullArgumentException {
    DataAdapter da = new ArrayDataAdapter(in);
    try {
        da.computeStats();
        fillBinStats(in);
    } catch (IOException e) {
        throw new MathIllegalStateException(e, LocalizedFormats.SIMPLE_MESSAGE, e.getLocalizedMessage());
    }
    loaded = true;

}
 
Example 3
Source File: EmpiricalDistribution.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Computes the empirical distribution from the provided
 * array of numbers.
 *
 * @param in the input data array
 * @exception NullArgumentException if in is null
 */
public void load(double[] in) throws NullArgumentException {
    DataAdapter da = new ArrayDataAdapter(in);
    try {
        da.computeStats();
        fillBinStats(in);
    } catch (IOException e) {
        throw new MathIllegalStateException(e, LocalizedFormats.SIMPLE_MESSAGE, e.getLocalizedMessage());
    }
    loaded = true;

}
 
Example 4
Source File: TestBean.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 *
 */
public Double getZ() {
    throw new MathUnsupportedOperationException(LocalizedFormats.SIMPLE_MESSAGE, "?");
}
 
Example 5
Source File: TestBean.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 *
 */
public Double getZ() {
    throw new MathUnsupportedOperationException(LocalizedFormats.SIMPLE_MESSAGE, "?");
}
 
Example 6
Source File: HighamHall54IntegratorTest.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
protected LocalException(Number wrong) {
    super(LocalizedFormats.SIMPLE_MESSAGE, wrong);
}
 
Example 7
Source File: DummyStepInterpolatorTest.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
@Override
protected void doFinalize() {
    throw new MathIllegalStateException(LocalizedFormats.SIMPLE_MESSAGE, "");
}
 
Example 8
Source File: TestBean.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 *
 */
public Double getZ() {
    throw new MathUnsupportedOperationException(LocalizedFormats.SIMPLE_MESSAGE, "?");
}
 
Example 9
Source File: TestBean.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 *
 */
public Double getZ() {
    throw new MathUnsupportedOperationException(LocalizedFormats.SIMPLE_MESSAGE, "?");
}
 
Example 10
Source File: HighamHall54IntegratorTest.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
protected LocalException(Number wrong) {
    super(LocalizedFormats.SIMPLE_MESSAGE, wrong);
}
 
Example 11
Source File: DummyStepInterpolatorTest.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
@Override
protected void doFinalize() {
    throw new MathIllegalStateException(LocalizedFormats.SIMPLE_MESSAGE, "");
}
 
Example 12
Source File: TestBean.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 *
 */
public Double getZ() {
    throw new MathUnsupportedOperationException(LocalizedFormats.SIMPLE_MESSAGE, "?");
}
 
Example 13
Source File: TestBean.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 *
 */
public Double getZ() {
    throw new MathUnsupportedOperationException(LocalizedFormats.SIMPLE_MESSAGE, "?");
}
 
Example 14
Source File: TestBean.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 *
 */
public Double getZ() {
    throw new MathUnsupportedOperationException(LocalizedFormats.SIMPLE_MESSAGE, "?");
}
 
Example 15
Source File: TestBean.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 *
 */
public Double getZ() {
    throw new MathUnsupportedOperationException(LocalizedFormats.SIMPLE_MESSAGE, "?");
}