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

kz.greetgo.conf.NoValue Maven / Gradle / Ivy

There is a newer version: 2.0.5
Show newest version
package kz.greetgo.conf;

/**
 * Indicates that there is no value for specified element
 */
public class NoValue extends RuntimeException {
  /**
   * Path to element
   */
  public final String path;

  public NoValue(CharSequence path) {
    super("" + path);
    this.path = path == null ? null : path.toString();
  }

  public NoValue(StringBuilder prevPath, String name) {
    this(prevPath == null || prevPath.toString().trim().length() == 0 ? name : prevPath.toString() + '/' + name);
  }

  @Override
  public synchronized Throwable fillInStackTrace() {
    return this;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy