# tf.compat.v1.flags.UnrecognizedFlagError

<br />

Raised when a flag is unrecognized.

Inherits From: [`Error`](https://www.tensorflow.org/versions/r2.1/api_docs/python/tf/compat/v1/flags/Error)

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.app.flags.UnrecognizedFlagError`](https://www.tensorflow.org/api_docs/python/tf/compat/v1/flags/UnrecognizedFlagError)

<br />

    tf.compat.v1.flags.UnrecognizedFlagError(
        flagname, flagvalue='', suggestions=None
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `flagname` | str, the name of the unrecognized flag. |
| `flagvalue` | The value of the flag, empty if the flag is not defined. |

<br />