[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Exception raised for an invalid character in TMask.
Source position: masks.pas line 33
type EMaskError = class(EConvertError) |
||
public |
||
Type |
||
|
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; |
|
Exception raised for an invalid character in TMask. |
|
| | ||
| | ||
| | ||
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:
|
Raises an exception when the specified mask character or offset is invalid. |
|
|
Raises an EMaskError exception when the closing ']' character is omitted from a set or range expression. |
|
|
Raises an EMaskError exception when escaped characters in a set is enabled, but range processing has not been enabled. |
|
|
Raises an EMaskError exception when an invalid value is assigned to the EscapeChar property. |
|
|
Raises an EMaskError exception when a parsed op code does not match an expected value in the mask expression. |
|
Version 4.0 | Generated 2025-05-03 | Home |