# OAuth2Error

**Kind:** Class

**Source:** [`atloria-monorepo/packages/ui-core/src/components/api-explorer/oauth2.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/ui-core/src/components/api-explorer/oauth2.ts#L97)

A failure the UI can name in the reader's own language.

The `code` is what the component maps to a string; `message` exists for developers reading a
stack trace and never carries a token — see `redactedProviderError`.

**Extends:** `Error`
