Method: Validate.FailAll( … )
Use to set a validation result of FailAll and error message in 1 line.
Will cause the entire processing to stop and no output will be created. Will also produce an error message in the $LOG if input parameter fail is true. The value of fail will also be returned by the method, making it easier to write more compact and easier to read code.
Syntax
bool Validate.FailAll( bool fail, string failMessage )
Example
Check example under Validate.FailItem(). The syntax is the same.