ExpectPreconditionWithReason | ||||||||||
Type | statement | |||||||||
Dictionary | LCB | |||||||||
Library | LiveCode Builder | |||||||||
Syntax |
| |||||||||
Associations | com.livecode.assert | |||||||||
Summary | Check a precondition, with a reason | |||||||||
Parameters |
| |||||||||
Example |
| |||||||||
Related | Statement: ExpectPrecondition | |||||||||
Description | Use this statement at the start of a handler to check that necessary preconditions for the handler are satisfied. For example, the handler may require that its parameters have a particular structure or fall within a particular range, or may need the system to be in a specific state. If the Condition is false, an error will be thrown including the Reason for the check. | |||||||||
Tags | assertions |