com.borland.primetime.util
Class AssertionException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--com.borland.primetime.util.AssertionException
- All Implemented Interfaces:
- java.io.Serializable
- public class AssertionException
- extends java.lang.RuntimeException
Implies detection of a condition that should never happen.
- See Also:
- Serialized Form
Method Summary |
static void |
assert(boolean test)
Tests input condition and throws AssertionException if it is false. |
static void |
assert(boolean test,
java.lang.String description)
Tests input condition and throws AssertionException if it is false. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AssertionException
public AssertionException()
- Default constructor, does nothing.
AssertionException
public AssertionException(java.lang.String description)
- Same as default constructor but has descriptive text.
- Parameters:
description
- Uses this string as exception message if thrown.
assert
public static void assert(boolean test)
- Tests input condition and throws AssertionException if it is false.
- Parameters:
test
- If this is false, will throw AssertionException.
assert
public static void assert(boolean test,
java.lang.String description)
- Tests input condition and throws AssertionException if it is false.
- Parameters:
test
- If this is false, will throw AssertionException.description
- Uses this string as exception message if thrown.