All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dakusui.lisj.exceptions.SymbolNotFoundException Maven / Gradle / Ivy

package com.github.dakusui.lisj.exceptions;

public class SymbolNotFoundException extends LisjException {

  /**
   * Serial version UID
   */
  private static final long serialVersionUID = 7113721808558087053L;
  private final String symbolNames;

  /**
   * Creates an object of this class.
   *
   * @param symbolNames Comma separated symbol names.
   * @param t           A nested exception
   */
  public SymbolNotFoundException(String symbolNames, Throwable t) {
    super(formatSymbolNames(symbolNames), t);
    this.symbolNames = symbolNames;
  }

  static private String formatSymbolNames(String symbolNames) {
    return String
        .format("The symbol(s) '%s' weren't found.", symbolNames);
  }

  /**
   * Returns a string of comma separated symbol names.
   */
  public String getSymbolNames() {
    return this.symbolNames;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy