augment-vir - v31.13.0
    Preparing search index...

    Class AssertionError

    An error thrown by the @augment-vir/assert package when an assertion fails.

    This requires both a baseMessage (the default "this thing failed" error message defined inside @augment-vir/assert for each assert method), and a possibly-undefined userCustomizedMessage (the optional user-defined failure message for any assertion).

    import {AssertionError} from '@augment-vir/assert';

    // the message from this error will be: `'User defined message: The assertion failed.'`
    throw new AssertionError('The assertion failed.', 'User defined message.');

    Hierarchy

    • Error
      • AssertionError
    Index

    Constructors

    Properties

    Constructors

    Properties

    name: string = 'AssertionError'