1
2
3
4
5
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 }