import { catchError, of } from 'rxjs'; import type { HTMLString } from '../types/dom'; import { MaybeFuture } from '../types/futures'; /** * An error-catcher sink that displays a custom message when the underlying stream errors * @param stream The original data or source stream * @param handler A function that takes an error and returns a message * @returns RMLTemplateExpression A template expression for the "innerHTML" attribute * @example