001/* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8-unix -*- 002 * 003 * Copyright © 2017 MicroBean. 004 * 005 * Licensed under the Apache License, Version 2.0 (the "License"); 006 * you may not use this file except in compliance with the License. 007 * 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 014 * implied. See the License for the specific language governing 015 * permissions and limitations under the License. 016 */ 017package org.microbean.helm.chart.resolver; 018 019import java.io.Serializable; // for javadoc only 020 021/** 022 * An exception thrown by an {@link AbstractChartResolver} 023 * implementation's {@link AbstractChartResolver#resolve(String, 024 * String)} method indicating there was a problem with resolving a <a 025 * href="https://docs.helm.sh/developing_charts/#charts">Helm 026 * chart</a>. 027 * 028 * @author <a href="https://about.me/lairdnelson" 029 * target="_parent">Laird Nelson</a> 030 * 031 * @see AbstractChartResolver#resolve(String, String) 032 */ 033public class ChartResolverException extends Exception { 034 035 036 /* 037 * Static fields. 038 */ 039 040 041 /** 042 * The version of this class for {@linkplain Serializable 043 * serialization} purposes. 044 */ 045 private static final long serialVersionUID = 1L; 046 047 048 /* 049 * Constructors. 050 */ 051 052 053 /** 054 * Creates a {@link ChartResolverException}. 055 */ 056 public ChartResolverException() { 057 super(); 058 } 059 060 /** 061 * Creates a {@link ChartResolverException}. 062 * 063 * @param message a detail message; may be {@code null} 064 */ 065 public ChartResolverException(final String message) { 066 super(message); 067 } 068 069 /** 070 * Creates a {@link ChartResolverException}. 071 * 072 * @param cause the {@link Throwable} causing this {@link 073 * ChartResolverException} to be created; may be {@code null} 074 */ 075 public ChartResolverException(final Throwable cause) { 076 super(cause); 077 } 078 079 /** 080 * Creates a {@link ChartResolverException}. 081 * 082 * @param message a detail message; may be {@code null} 083 * 084 * @param cause the {@link Throwable} causing this {@link 085 * ChartResolverException} to be created; may be {@code null} 086 */ 087 public ChartResolverException(final String message, final Throwable cause) { 088 super(message, cause); 089 } 090 091}