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

EMaskError

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Exception raised for an invalid character in TMask.

Declaration

Source position: masks.pas line 33

type EMaskError = class(EConvertError)

public

Type

  TMaskExceptionCode = (

  

Enumeration with values identifiers representing mask exception codes.

  mecInternalError,

  

Represents an exception raised when an unexpected op code is encountered while evaluating a mask expression.

  mecInvalidCharMask,

  

Represents an exception raised when an unexpected mask character is found when compiling the op codes for a mask expression.

  mecMissingClose,

  

Represents an exception raised when the closing ']' is not found in a set or range expression.

  mecIncompleteMask,

  

Represents an exception raised when a mask does not contain enough characters to evaluate the mask expression.

  mecInvalidEscapeChar,

  

Represents an exception raised when an invalid value is assigned as the EscapeChar for a mask instance.

  mecInvalidUTF8Sequence

  

Not used in the current implementation.

);

protected

  FCode: TMaskExceptionCode;

  

Member with the mask exception code for an exception instance.

public

  constructor Create();

  

Constructor for the class instance.

  constructor CreateFmt();

  

Constructor for the class instance.

  property Code: TMaskExceptionCode; [r]

  

Provides access to the mask exception code for the exception instance.

end;

Inheritance

EMaskError

  

Exception raised for an invalid character in TMask.

|

EConvertError

|

Exception

|

TObject

Description

EMaskError is a EConvertError descendant representing the exception raised when an invalid character is found in a mask expression, or when an invalid value is assigned to properties in a mask class instances. EMaskError is the exception type raised in TMaskBase methods like:

See also

TMaskBase.Exception_InvalidCharMask

  

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

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.

EConvertError


Version 4.0 Generated 2025-05-03 Home