def raise_error_unsupported_option(option, layer_type, layer_name):
    """
    Raise an error if an option is not supported.
    """
    raise RuntimeError('Unsupported option =%s in layer %s(%s)' % (option,
        layer_type, layer_name))
