1 15 package org.apache.tapestry.valid; 16 17 import org.apache.tapestry.IRender; 18 19 25 26 public class ValidatorException extends Exception 27 { 28 private IRender _errorRenderer; 29 30 private ValidationConstraint _constraint; 31 32 public ValidatorException(String errorMessage) 33 { 34 this(errorMessage, null, null); 35 } 36 37 public ValidatorException(String errorMessage, ValidationConstraint constraint) 38 { 39 this(errorMessage, null, constraint); 40 } 41 42 57 58 public ValidatorException(String errorMessage, IRender errorRenderer, 59 ValidationConstraint constraint) 60 { 61 super(errorMessage); 62 63 _errorRenderer = errorRenderer; 64 _constraint = constraint; 65 } 66 67 public ValidationConstraint getConstraint() 68 { 69 return _constraint; 70 } 71 72 77 78 public IRender getErrorRenderer() 79 { 80 return _errorRenderer; 81 } 82 } | Popular Tags |