001 package org.bukkit.configuration;
002
003 /**
004 * Exception thrown when attempting to load an invalid {@link Configuration}
005 */
006 @SuppressWarnings("serial")
007 public class InvalidConfigurationException extends Exception {
008
009 /**
010 * Creates a new instance of InvalidConfigurationException without a
011 * message or cause.
012 */
013 public InvalidConfigurationException() {}
014
015 /**
016 * Constructs an instance of InvalidConfigurationException with the
017 * specified message.
018 *
019 * @param msg The details of the exception.
020 */
021 public InvalidConfigurationException(String msg) {
022 super(msg);
023 }
024
025 /**
026 * Constructs an instance of InvalidConfigurationException with the
027 * specified cause.
028 *
029 * @param cause The cause of the exception.
030 */
031 public InvalidConfigurationException(Throwable cause) {
032 super(cause);
033 }
034
035 /**
036 * Constructs an instance of InvalidConfigurationException with the
037 * specified message and cause.
038 *
039 * @param cause The cause of the exception.
040 * @param msg The details of the exception.
041 */
042 public InvalidConfigurationException(String msg, Throwable cause) {
043 super(msg, cause);
044 }
045 }