001package org.biojava.bibliography;
002
003/**
004 * An exception raised when communciation with the BibRef APIs fails.
005 *
006 * @author Matthew Pocock
007 * @since 1.4
008 */
009public class BibRefException
010extends Exception {
011  /**
012   * Create a new BibRefException with a message.
013   *
014   * @param message  the message of the exception
015   */
016  public BibRefException(String message) {
017    super(message);
018  }
019
020  /**
021   * Create a new BibRefException with a root cause.
022   *
023   * @param cause  the unerlying cause of this exception
024   */
025  public BibRefException(Throwable cause) {
026    super(cause);
027  }
028
029  /**
030   * Create a nw BibRefException with a message and a root cause.
031   *
032   * @param message   the message for the exception
033   * @param cause     the underlying cuase of this exception
034   */
035  public BibRefException(String message, Throwable cause) {
036    super(message, cause);
037  }
038}