package com.google.security.fences.util;

/**
 * Thrown when there is a problem with content received from a rule or plugin
 * configuration.
 */
public class MisconfigurationException extends Exception {
  private static final long serialVersionUID = 8352508127864531032L;

  /**
   * @see java.lang.Exception#Exception(String, Throwable)
   */
  public MisconfigurationException(String msg, Throwable cause) {
    super(msg, cause);
  }

  /**
   * @see java.lang.Exception#Exception(String)
   */
  public MisconfigurationException(String msg) {
    super(msg);
  }
}

replace uses of EnforcerRuleException with a generic MisconfigurationException so that the code, except for FencesMavenEnforcerRule, does not depend on the enforcer API. This is in advance of splitting the code into common code that supports both a rule and a plugin.