'Raises an error if position is specified outside of AppInclude objects.
Raises:
PositionUsedInAppYamlHandler: when position attribute is specified for an
app.yaml file instead of an include.yaml file.'

def ErrorOnPositionForAppInfo(self):

    if self.position:
        raise appinfo_errors.PositionUsedInAppYamlHandler('The    position    attribute    was    specified    for    this    handler,    but    this    is    an    app.yaml    file.        Position    attribute    is    only    valid    for    include.yaml    files.')
