Unit 'fpobserver' Package
[Overview][Types][Classes][Procedures and functions][Index] [#fcl]

MediatorError

Raises formatted mediator error with context information

Declaration

Source position: fpobserver.pp line 386

procedure MediatorError(

  Sender: TObject;

  const Msg: string

); overload;

procedure MediatorError(

  Sender: TObject;

  const Fmt: string;

  Args: array of Const

); overload;

Arguments

Sender

  

Object causing the error for context

Msg

  

Error message to display

Arguments

Sender

  

Object causing the error for context

Fmt

  

Format string for the error message

Args

  

Arguments for the format string

Description

The MediatorError procedure raises an EMediator exception with detailed context information. It formats the error message with information about the sender object, including mediator details, view component names, and subject information where available.

Multiple overloads support both direct message strings and format string with arguments.

See also

EMediator

  

Exception class for mediator-related errors


Documentation generated on: Dec 15 2025