1 16 package java.lang; 17 18 21 public class AssertionError extends Error { 22 23 public AssertionError() { 24 } 25 26 private AssertionError(String message) { 27 super(message); 28 } 29 30 public AssertionError(Object message) { 31 super(String.valueOf(message), message instanceof Throwable 32 ? (Throwable ) message : null); 33 } 34 35 public AssertionError(boolean message) { 36 this(String.valueOf(message)); 37 } 38 39 public AssertionError(char message) { 40 this(String.valueOf(message)); 41 } 42 43 public AssertionError(int message) { 44 this(String.valueOf(message)); 45 } 46 47 public AssertionError(long message) { 48 this(String.valueOf(message)); 49 } 50 51 public AssertionError(float message) { 52 this(String.valueOf(message)); 53 } 54 55 public AssertionError(double message) { 56 this(String.valueOf(message)); 57 } 58 } 59 | Popular Tags |