Error raised when a Generator tries to do something that requires a Conventions object but it is None.
| 156 | |
| 157 | |
| 158 | class MissingGeneratorOptionsConventionsError(RuntimeError): |
| 159 | """Error raised when a Generator tries to do something that requires a Conventions object but it is None.""" |
| 160 | |
| 161 | def __init__(self, msg=None): |
| 162 | full_msg = 'Missing Conventions object self.genOpts.conventions' |
| 163 | if msg: |
| 164 | full_msg += f": {msg}" |
| 165 | super().__init__(full_msg) |
| 166 | |
| 167 | |
| 168 | class GeneratorOptions: |
no outgoing calls
no test coverage detected