7071727374757677
super(fieldFactory); } public void clean_subject() throws ValidationException { if ("wrong".equals(getCleanedData().get("subject"))) { throw new ValidationException("Subject is wrong!!"); } }
15161718192021222324
public CharField myField; public void clean() throws ValidationException { if (getErrors().isEmpty()) { throw new ValidationException("yipee"); } // should not be called if we already have errors. throw new RuntimeException("oops"); }