• A generic error handler that logs the error and calls a custom error handler if one is set.

    Parameters

    • log: ILogger

      A logger instance for interally logging the error.

    • error: unknown

      The error that occurred.

    • Optional additionalInfo: IAppErrorContext

      Additional context about the error.

    • Optional customHandler: IErrorHandler
    • Optional credentialSource: unknown

    Returns void