1 *java.lang.AssertionError* *AssertionError* Thrown to indicate that an assertion
3 public class AssertionError
4 extends |java.lang.Error|
6 |java.lang.AssertionError_Description|
7 |java.lang.AssertionError_Fields|
8 |java.lang.AssertionError_Constructors|
9 |java.lang.AssertionError_Methods|
11 ================================================================================
13 *java.lang.AssertionError_Constructors*
14 |java.lang.AssertionError()|Constructs an AssertionError with no detail message
15 |java.lang.AssertionError(boolean)|Constructs an AssertionError with its detail
16 |java.lang.AssertionError(char)|Constructs an AssertionError with its detail me
17 |java.lang.AssertionError(double)|Constructs an AssertionError with its detail
18 |java.lang.AssertionError(float)|Constructs an AssertionError with its detail m
19 |java.lang.AssertionError(int)|Constructs an AssertionError with its detail mes
20 |java.lang.AssertionError(long)|Constructs an AssertionError with its detail me
21 |java.lang.AssertionError(Object)|Constructs an AssertionError with its detail
23 *java.lang.AssertionError_Description*
25 Thrown to indicate that an assertion has failed.
27 The seven one-argument public constructors provided by this class ensure that
28 the assertion error returned by the invocation:
30 new AssertionError(expression)
32 has as its detail message the string conversion of expression (as defined in
33 The Java Language Specification, Second Edition,
35 Section 15.18.1.1), regardless of the type of expression.
38 *java.lang.AssertionError()*
40 public AssertionError()
42 Constructs an AssertionError with no detail message.
45 *java.lang.AssertionError(boolean)*
47 public AssertionError(boolean detailMessage)
49 Constructs an AssertionError with its detail message derived from the specified
50 boolean, which is converted to a string as defined in The Java Language
51 Specification, Second Edition, Section 15.18.1.1.
53 detailMessage - value to be used in constructing detail message
55 *java.lang.AssertionError(char)*
57 public AssertionError(char detailMessage)
59 Constructs an AssertionError with its detail message derived from the specified
60 char, which is converted to a string as defined in The Java Language
61 Specification, Second Edition, Section 15.18.1.1.
63 detailMessage - value to be used in constructing detail message
65 *java.lang.AssertionError(double)*
67 public AssertionError(double detailMessage)
69 Constructs an AssertionError with its detail message derived from the specified
70 double, which is converted to a string as defined in The Java Language
71 Specification, Second Edition, Section 15.18.1.1.
73 detailMessage - value to be used in constructing detail message
75 *java.lang.AssertionError(float)*
77 public AssertionError(float detailMessage)
79 Constructs an AssertionError with its detail message derived from the specified
80 float, which is converted to a string as defined in The Java Language
81 Specification, Second Edition, Section 15.18.1.1.
83 detailMessage - value to be used in constructing detail message
85 *java.lang.AssertionError(int)*
87 public AssertionError(int detailMessage)
89 Constructs an AssertionError with its detail message derived from the specified
90 int, which is converted to a string as defined in The Java Language
91 Specification, Second Edition, Section 15.18.1.1.
93 detailMessage - value to be used in constructing detail message
95 *java.lang.AssertionError(long)*
97 public AssertionError(long detailMessage)
99 Constructs an AssertionError with its detail message derived from the specified
100 long, which is converted to a string as defined in The Java Language
101 Specification, Second Edition, Section 15.18.1.1.
103 detailMessage - value to be used in constructing detail message
105 *java.lang.AssertionError(Object)*
107 public AssertionError(java.lang.Object detailMessage)
109 Constructs an AssertionError with its detail message derived from the specified
110 object, which is converted to a string as defined in The Java Language
111 Specification, Second Edition, Section 15.18.1.1.
113 If the specified object is an instance of Throwable, it becomes the cause of
114 the newly constructed assertion error.
116 detailMessage - value to be used in constructing detail message