001/* 002 * PlotSquared, a land and world management plugin for Minecraft. 003 * Copyright (C) IntellectualSites <https://intellectualsites.com> 004 * Copyright (C) IntellectualSites team and contributors 005 * 006 * This program is free software: you can redistribute it and/or modify 007 * it under the terms of the GNU General Public License as published by 008 * the Free Software Foundation, either version 3 of the License, or 009 * (at your option) any later version. 010 * 011 * This program is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 014 * GNU General Public License for more details. 015 * 016 * You should have received a copy of the GNU General Public License 017 * along with this program. If not, see <https://www.gnu.org/licenses/>. 018 */ 019package com.plotsquared.core.configuration; 020 021/** 022 * Exception thrown when attempting to load an invalid {@link Configuration}. 023 */ 024@SuppressWarnings("serial") 025public class InvalidConfigurationException extends Exception { 026 027 /** 028 * Creates a new instance of InvalidConfigurationException without a 029 * message or cause. 030 */ 031 public InvalidConfigurationException() { 032 } 033 034 /** 035 * Constructs an instance of InvalidConfigurationException with the 036 * specified message. 037 * 038 * @param msg The details of the exception. 039 */ 040 public InvalidConfigurationException(String msg) { 041 super(msg); 042 } 043 044 /** 045 * Constructs an instance of InvalidConfigurationException with the 046 * specified cause. 047 * 048 * @param cause The cause of the exception. 049 */ 050 public InvalidConfigurationException(Throwable cause) { 051 super(cause); 052 } 053 054 /** 055 * Constructs an instance of InvalidConfigurationException with the 056 * specified message and cause. 057 * 058 * @param cause The cause of the exception. 059 * @param msg The details of the exception. 060 */ 061 public InvalidConfigurationException(String msg, Throwable cause) { 062 super(msg, cause); 063 } 064 065}