CodeExplorer AppValidationException example
public function validate(Manifest
$manifest, Context
$context): void
{ $errors =
new ErrorCollection();
foreach ($this->validators
as $validator) { $errors->
addErrors($validator->
validate($manifest,
$context));
} if ($errors->
count() === 0
) { return;
} throw new AppValidationException($manifest->
getMetadata()->
getName(),
$errors);
}}