# `Latch.Error.IdentityMismatch`

A handle reoslved to a DID, but the DID document does not read back to it,
or it lacks a usable PDS endpoint.

## `reason` values

  * `:handle_mismatch` - the DID document claims a different handle
  * `:invalid_did` - the DID could not be parsed
  * `:no_pds` - the DID document has no PDS service entry
  * `:invalid_pds_endpoint` - the PDS service target is not a valid URL
  * `:did_mismatch`

# `t`

```elixir
@type t() :: %Latch.Error.IdentityMismatch{
  __exception__: term(),
  handle: String.t() | nil,
  reason: atom()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
