blob: 0d7802c431c681bb75d0ff1586f83782a53dd9ac [file] [log] [blame]
jeffhao5d1ac922011-09-29 17:41:15 -07001package junit.framework;
2
3/**
4 * Thrown when an assertion failed.
5 */
Alex Light1ef4ce82014-08-27 11:13:47 -07006public class AssertionFailedError extends AssertionError {
jeffhao5d1ac922011-09-29 17:41:15 -07007
Alex Light1ef4ce82014-08-27 11:13:47 -07008 private static final long serialVersionUID= 1L;
9
10 public AssertionFailedError() {
11 }
12
13 public AssertionFailedError(String message) {
14 super(defaultString(message));
15 }
16
17 private static String defaultString(String message) {
18 return message == null ? "" : message;
19 }
20}