View Javadoc

1   package org.xmlfield.validation;
2   
3   import org.xmlfield.core.exception.XmlFieldException;
4   
5   public class XmlFieldValidationException extends XmlFieldException {
6   
7       private static final long serialVersionUID = 1L;
8       String methodName;
9       String expected;
10      String actual;
11  
12      public XmlFieldValidationException(String methodName, String expected, String actual) {
13          super("Validation failed on " + methodName + ". Expected: " + expected + " Actual: " + actual);
14          this.methodName = methodName;
15          this.expected = expected;
16          this.actual = actual;
17  
18      }
19  
20  }