Skip to content

MediatorError

Raises formatted mediator error with context information

Declaration

Source position: fpobserver.pp line 386

procedure MediatorError(Sender: TObject; const Msg: string);  overload; overload;
procedure MediatorError(Sender: TObject; const Fmt: string; 
                       Args: Array of const);  overload; overload;

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

Name Description
EMediator Exception class for mediator-related errors