src/Validator.php
public function collect(string $message, \Exception $exception = null): void
    {
        if ($exception) {
            throw new InvalidBuildException($exception->getMessage(), $message, $exception);
        }
    }
public function collect(string $message, \Exception $exception = null): void
    {
        if ($exception) {
            throw new InvalidBuildException($exception->getMessage(), $message, $exception);
        }
    }
@inheritdoc

@throws InvalidBuildException