001 /*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017
018 package org.apache.commons.math.estimation;
019
020 import org.apache.commons.math.MathException;
021 import org.apache.commons.math.exception.util.DummyLocalizable;
022 import org.apache.commons.math.exception.util.Localizable;
023
024 /**
025 * This class represents exceptions thrown by the estimation solvers.
026 *
027 * @version $Revision: 983921 $ $Date: 2010-08-10 12:46:06 +0200 (mar. 10 ao??t 2010) $
028 * @since 1.2
029 * @deprecated as of 2.0, everything in package org.apache.commons.math.estimation has
030 * been deprecated and replaced by package org.apache.commons.math.optimization.general
031 *
032 */
033 @Deprecated
034 public class EstimationException
035 extends MathException {
036
037 /** Serializable version identifier. */
038 private static final long serialVersionUID = -573038581493881337L;
039
040 /**
041 * Simple constructor.
042 * Build an exception by translating and formating a message
043 * @param specifier format specifier (to be translated)
044 * @param parts to insert in the format (no translation)
045 */
046 public EstimationException(String specifier, Object ... parts) {
047 this(new DummyLocalizable(specifier), parts);
048 }
049
050 /**
051 * Simple constructor.
052 * Build an exception by translating and formating a message
053 * @param specifier format specifier (to be translated)
054 * @param parts to insert in the format (no translation)
055 * @since 2.2
056 */
057 public EstimationException(Localizable specifier, Object ... parts) {
058 super(specifier, parts);
059 }
060
061 }