AssertionError
class in package klyn

    public class AssertionError extends AssertionException:

Object
└ Exception
└ UncheckedException
└ AssertionException
└ AssertionError

Exception raised by the `klyn.unittest.Assert` helper methods when an assertion fails.

The low-level `assert` keyword keeps raising `AssertionException`; this class is the unittest-level assertion failure type.

@param message Description of the failed assertion.

    import klyn.unittest

    try:
    Assert.assertTrue(false)
    catch exc as AssertionError:
    println(exc.message)

Properties inherited from Exception: message
Properties inherited from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | AssertionError `AssertionError(message as String = "Assertion failed"):` | Creates an assertion error.

Methods inherited from UncheckedException: toString
Methods inherited from Exception: toString
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml