Type Alias IsException<Exception>

IsException: (error: unknown) => error is Exception

Type Parameters

Type declaration

    • (error: unknown): error is Exception
    • Parameters

      • error: unknown

      Returns error is Exception

      Whether error is a known application exception that should be sent to the client when thrown.