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 package org.apache.commons.math; 018 019 import java.io.Serializable; 020 021 /** 022 * Signals a configuration problem with any of the factory methods. 023 * @version $Revision: 746578 $ $Date: 2009-02-21 15:01:14 -0500 (Sat, 21 Feb 2009) $ 024 */ 025 public class MathConfigurationException extends MathException implements Serializable{ 026 027 /** Serializable version identifier */ 028 private static final long serialVersionUID = 5261476508226103366L; 029 030 /** 031 * Default constructor. 032 */ 033 public MathConfigurationException() { 034 super(); 035 } 036 037 /** 038 * Constructs an exception with specified formatted detail message. 039 * Message formatting is delegated to {@link java.text.MessageFormat}. 040 * @param pattern format specifier 041 * @param arguments format arguments 042 * @since 1.2 043 */ 044 public MathConfigurationException(String pattern, Object ... arguments) { 045 super(pattern, arguments); 046 } 047 048 /** 049 * Create an exception with a given root cause. 050 * @param cause the exception or error that caused this exception to be thrown 051 */ 052 public MathConfigurationException(Throwable cause) { 053 super(cause); 054 } 055 056 /** 057 * Constructs an exception with specified formatted detail message and root cause. 058 * Message formatting is delegated to {@link java.text.MessageFormat}. 059 * @param cause the exception or error that caused this exception to be thrown 060 * @param pattern format specifier 061 * @param arguments format arguments 062 * @since 1.2 063 */ 064 public MathConfigurationException(Throwable cause, String pattern, Object ... arguments) { 065 super(cause, pattern, arguments); 066 } 067 068 }