View Javadoc

    1   /*
    2    * joey-gen and its relative products are published under the terms
    3    * of the Apache Software License.
    4    *
    5    * Created on 2004/08/16 2:43:08
    6    */
    7   package org.asyrinx.joey.gen.model.command;
    8
    9   import org.asyrinx.joey.gen.model.Element;
    10
    11  /***
    12   * @author akima
    13   */
    14  public class ValidationError extends Error {
    15
    16      /***
    17       * @param msg
    18       */
    19      public ValidationError(String msg) {
    20          this(msg, null);
    21      }
    22
    23      /***
    24       * @param msg
    25       */
    26      public ValidationError(String msg, Element element) {
    27          super(msg);
    28          this.element = element;
    29      }
    30
    31      protected final Element element;
    32
    33      /***
    34       * @return Returns the element.
    35       */
    36      public Element getElement() {
    37          return element;
    38      }
    39  }