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

TMaskBase.Exception_InvalidCharMask

Raises an exception when the specified mask character or offset is invalid.

Declaration

Source position: masks.pas line 199

protected class procedure TMaskBase.Exception_InvalidCharMask(

  const aMaskChar: string;

  aOffset: Integer = - 1

);

Arguments

aMaskChar

  

Mask character which caused the exception.

aOffset

  

Offset where the invalid mask character was found.

Description

Exception_InvalidCharMask is a class procedure used to raise an exception when a character in the mask expression is invalid. Exception_InvalidCharMask is one of the methods called during execution of the Compile method (in descendent classes) when an invalid Mask expression is detected for the class instance.

In TMaskBase, an EMaskError exception is always raised. The base class does not implement the required mask expression, nor does it provide a complete implementation of the Compile method.

See also

TMaskBase.Exception_MissingCloseChar

  

Raises an EMaskError exception when the closing ']' character is omitted from a set or range expression.

TMaskBase.Exception_IncompleteMask

  

Raises an EMaskError exception when escaped characters in a set is enabled, but range processing has not been enabled.

TMaskBase.Exception_InvalidEscapeChar

  

Raises an EMaskError exception when an invalid value is assigned to the EscapeChar property.

TMaskBase.Exception_InternalError

  

Raises an EMaskError exception when a parsed op code does not match an expected value in the mask expression.

TMaskUTF8.Compile

  

Examines the mask expression and creates a list of op codes.

TWindowsMaskUTF8.Compile

  

Examines and converts the mask expression into a list of op codes.


Version 4.0 Generated 2025-05-03 Home