import { Directive, ElementRef, Input, OnChanges } from "@angular/core"; import { LogService } from "@bitwarden/common/abstractions/log.service"; import { ErrorResponse } from "@bitwarden/common/models/response/errorResponse"; import { ValidationService } from "../services/validation.service"; /** * Provides error handling, in particular for any error returned by the server in an api call. * Attach it to a