Documentation
    Preparing search index...
    • Insert an error class with converter.

      If you've inserted an duplicated error class, the closure would be overwritten.

      Type Parameters

      • T extends Error

      Parameters

      • creator: Creator<T>

        Target error class

      • closure: ExceptionManager.Closure<T>

        A closure function converting to the HttpException class

      Returns void

      contracts/common.md#principled-implementation An existing entry for the same class is removed first, then the new entry is placed before the first registered class that it extends, so specificity order holds however the calls are ordered.

      contracts/common.md#clear-and-simple-design One function over one list.

      contracts/common.md#prohibited-implementation-shortcuts The order rule is derived from the prototype chain, not from a list of known classes.

      contracts/common.md#meaningful-documentation The comment states the replacement and ordering rules.

      contracts/portability.md#os-neutral-implementation Converter ordering and listener registration operate on JavaScript class and function identity, not native path or process identity.