def METHOD_NAME(self):
    if self.settings.compiler.cppstd:
        check_min_cppstd(self, 14)
    minimum_version = self._compilers_minimum_version.get(str(self.settings.compiler), False)
    if minimum_version and Version(self.settings.compiler.version) < minimum_version:
        raise ConanInvalidConfiguration(
            f"{self.ref} requires C++{self._min_cppstd}, which your compiler does not support.",
        )
    if self.settings.compiler == "apple-clang" and Version(self.version) != "2.14.0":
        raise ConanInvalidConfiguration("""
            `apple-clang` compilation is supported only for version 2.14.0 and up.
            See https://github.com/nanodbc/nanodbc/issues/274 for more details.
            """)