001/* 002 * Extra Bnd Repository Plugins 003 * Copyright (C) 2019 Michael N. Lipp 004 * 005 * This program is free software; you can redistribute it and/or modify it 006 * under the terms of the GNU Affero General Public License as published by 007 * the Free Software Foundation; either version 3 of the License, or 008 * (at your option) any later version. 009 * 010 * This program is distributed in the hope that it will be useful, but 011 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 012 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License 013 * for more details. 014 * 015 * You should have received a copy of the GNU Affero General Public License along 016 * with this program; if not, see <http://www.gnu.org/licenses/>. 017 */ 018 019package de.mnl.osgi.bnd.maven; 020 021/** 022 * Indicates a problem when lazily loading properties of a {@link MavenResource}. 023 */ 024public class MavenResourceException extends Exception { 025 026 private static final long serialVersionUID = 1112064683351913549L; 027 028 /** 029 * Instantiates a new maven resource exception. 030 */ 031 public MavenResourceException() { 032 // Empty constructor 033 } 034 035 /** 036 * Instantiates a new maven resource exception. 037 * 038 * @param message the message 039 */ 040 public MavenResourceException(String message) { 041 super(message); 042 } 043 044 /** 045 * Instantiates a new maven resource exception. 046 * 047 * @param cause the cause 048 */ 049 public MavenResourceException(Throwable cause) { 050 super(cause); 051 } 052 053 /** 054 * Instantiates a new maven resource exception. 055 * 056 * @param message the message 057 * @param cause the cause 058 */ 059 public MavenResourceException(String message, Throwable cause) { 060 super(message, cause); 061 } 062 063 /** 064 * Instantiates a new maven resource exception. 065 * 066 * @param message the message 067 * @param cause the cause 068 * @param enableSuppression the enable suppression 069 * @param writableStackTrace the writable stack trace 070 */ 071 public MavenResourceException(String message, Throwable cause, 072 boolean enableSuppression, boolean writableStackTrace) { 073 super(message, cause, enableSuppression, writableStackTrace); 074 } 075 076}