001/* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8-unix -*-
002 *
003 * Copyright © 2022 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.interceptor;
018
019/**
020 * A {@link RuntimeException} indicating that an error has occurred
021 * while setting up an interception chain.
022 *
023 * @author <a href="https://about.me/lairdnelson"
024 * target="_parent">Laird Nelson</a>
025 */
026public class InterceptorException extends RuntimeException {
027
028  /**
029   * The version of this class for {@linkplain java.io.Serializable
030   * serialization} purposes.
031   */
032  private static final long serialVersionUID = 1L;
033
034
035  /*
036   * Constructors.
037   */
038
039
040  /**
041   * Creates a new {@link InterceptorException}.
042   */
043  public InterceptorException() {
044    super();
045  }
046
047  /**
048   * Creates a new {@link InterceptorException}.
049   *
050   * @param message a message describing the error; may be {@code
051   * null}
052   */
053  public InterceptorException(final String message) {
054    super(message);
055  }
056
057  /**
058   * Creates a new {@link InterceptorException}.
059   *
060   * @param cause the {@link Throwable} that caused this {@link
061   * InterceptorException} to be thrown; may be {@code null}
062   */
063  public InterceptorException(final Throwable cause) {
064    super(cause);
065  }
066
067  /**
068   * Creates a new {@link InterceptorException}.
069   *
070   * @param message a message describing the error; may be {@code
071   * null}
072   *
073   * @param cause the {@link Throwable} that caused this {@link
074   * InterceptorException} to be thrown; may be {@code null}
075   */
076  public InterceptorException(final String message, final Throwable cause) {
077    super(message, cause);
078  }
079
080}