MCPcopy
hub / github.com/KhronosGroup/Vulkan-Docs / MissingGeneratorOptionsError

Class MissingGeneratorOptionsError

scripts/generator.py:138–145  ·  view source on GitHub ↗

Error raised when a Generator tries to do something that requires GeneratorOptions but it is None.

Source from the content-addressed store, hash-verified

136 orderedFeatureNames.sort(key=lambda name: features[name].sortorder)
137
138class MissingGeneratorOptionsError(RuntimeError):
139 """Error raised when a Generator tries to do something that requires GeneratorOptions but it is None."""
140
141 def __init__(self, msg=None):
142 full_msg = 'Missing generator options object self.genOpts'
143 if msg:
144 full_msg += f": {msg}"
145 super().__init__(full_msg)
146
147
148class MissingRegistryError(RuntimeError):

Callers 15

beginFileMethod · 0.90
endFileMethod · 0.90
endFeatureMethod · 0.90
genTypeMethod · 0.90
genStructMethod · 0.90
genGroupMethod · 0.90
genCmdMethod · 0.90
enumToValueMethod · 0.85
buildEnumCDeclMethod · 0.85
beginFileMethod · 0.85
endFileMethod · 0.85
makeProtoNameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected