• 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