[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Masks' (#lazutils)

EMaskError.CreateFmt

Constructor for the class instance.

Declaration

Source position: masks.pas line 47

public constructor EMaskError.CreateFmt(

  const msg: string;

  args: array of Const;

  aCode: TMaskExceptionCode

);

Arguments

msg

  

Message for the exception with embedded arguments for Format().

args

  

Array of constant values for the formatted exception message.

aCode

  

Error code for the exception.

Description

CreateFmt is an overridden constructor used to create an exception instance with the values specified in the msg and aCode arguments. It stores the value in ACode to the cCode member, and calls the inherited method.

msg is a String which contains a formatting specification using the notation allowed for the RTL Format routine. Values from the args parameter are substituted for the placeholders found in the msg argument.


Version 4.0 Generated 2025-05-03 Home