@Test public void testConstructorWithMessage() { ValidationException sut = new ValidationException("msg"); assertEquals("msg", sut.getMessage()); assertFalse(sut.hasErrors()); }
public boolean hasErrors() { return errors != null && !errors.isEmpty(); }
ValidationException extends RuntimeException { public boolean hasErrors() { return errors != null && !errors.isEmpty(); } }
ValidationException extends RuntimeException { public boolean hasErrors() { return errors != null && !errors.isEmpty(); } ValidationException();  ValidationException(final String message); }
ValidationException extends RuntimeException { public boolean hasErrors() { return errors != null && !errors.isEmpty(); } ValidationException();  ValidationException(final String message); Map<String, String> getErrors(); void setErrors(final HashMap<String, String> map); void addError(final String property, final String message); boolean hasErrors(); }
ValidationException extends RuntimeException { public boolean hasErrors() { return errors != null && !errors.isEmpty(); } ValidationException();  ValidationException(final String message); Map<String, String> getErrors(); void setErrors(final HashMap<String, String> map); void addError(final String property, final String message); boolean hasErrors();  }