dart · dart/AssertionError
AssertionError
AssertionError
Thrown when an assert statement fails. Assertions are only evaluated in debug mode; in production builds they are ignored.
Also defined in
- java AssertionError Thrown when an assert statement fails. Assertions are disabled by default; enable them with -ea.
- python AssertionError Raised by a failing assert statement. If the assertion has a message, it becomes the exception's first argument.
- scala AssertionError Thrown when an assert(condition) call evaluates to false. Scala's assert is always active (unlike Java's, which requires -ea); use assert(cond, msg) to include a descriptive message.