jeffhao | 5d1ac92 | 2011-09-29 17:41:15 -0700 | [diff] [blame] | 1 | package junit.framework; |
| 2 | |
| 3 | /** |
| 4 | * Thrown when an assertion failed. |
| 5 | */ |
Alex Light | 1ef4ce8 | 2014-08-27 11:13:47 -0700 | [diff] [blame] | 6 | public class AssertionFailedError extends AssertionError { |
jeffhao | 5d1ac92 | 2011-09-29 17:41:15 -0700 | [diff] [blame] | 7 | |
Alex Light | 1ef4ce8 | 2014-08-27 11:13:47 -0700 | [diff] [blame] | 8 | 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 | } |