//[passport](../../../index.md)/[com.yandex.passport.api.exception](../index.md)/[PassportCodeInvalidException](index.md)

# PassportCodeInvalidException

[passport]\
open class [PassportCodeInvalidException](index.md) : [PassportException](../-passport-exception/index.md)

Неверный или просроченный код подтверждения. Обычно это [ответ API сервера](https://tech.yandex.ru/oauth/doc/dg/reference/auto-code-client-docpage/)*invalid_grant* на вызов [authorizeByCode](../../com.yandex.passport.api/-passport-api/authorize-by-code.md)

## Constructors

| | |
|---|---|
| [PassportCodeInvalidException](-passport-code-invalid-exception.md) | [passport]<br>open fun [PassportCodeInvalidException](-passport-code-invalid-exception.md)() |
| [PassportCodeInvalidException](-passport-code-invalid-exception.md) | [passport]<br>open fun [PassportCodeInvalidException](-passport-code-invalid-exception.md)(@NonNullcause: Throwable) |
