> ## Documentation Index
> Fetch the complete documentation index at: https://primer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# PrimerInputValidationError

Representing a Primer Input Validation Error.
Whenever external input is required by our [PrimerHeadlessUniversalCheckoutRawDataManager.setRawData](https://primer.io/docs/sdk/android/v2.x.x/primer-headless-checkout/raw-data-manager/),
the data will be validated. Any validation errors will be associated with the
corresponding `PrimerInputElementType`.

```kotlin KOTLIN theme={"dark"}
data class PrimerInputValidationError(
  val errorId: String,
  val description: String,
  val diagnosticsId: String,
  val inputElementType: PrimerInputElementType
)
```

## Properties

**errorId** `String` *required*

A unique error identifier.

**description** `String` *required*

A error description.

**diagnosticsId** `String` *required*

A unique diagnostics id for the given error.

**inputElementType** `PrimerInputElementType` *required*

The type of input element associated with the validation error.

## Exposed Error IDs

### PrimerRawData Errors

#### PrimerCardData

| Error ID | Description | Input Element Type |
| - | - | - |
| `invalid-card-number` | Card number is not valid. | `PrimerInputElementType.CARD_NUMBER` |
| `invalid-cvv` | Card CVV is not valid. | `PrimerInputElementType.CVV` |
| `invalid-expiry-date` | Card expiry date is not valid. Valid expiry date format is MM/YYYY. | `PrimerInputElementType.EXPIRY_DATE` |
| `invalid-cardholder-name` | Cardholder name cannot be blank. | `PrimerInputElementType.CARDHOLDER_NAME` |
| `unsupported-card-type` | Unsupported card type detected. | `PrimerInputElementType.CARD_NUMBER` |

#### PrimerBancontactCardData

| Error ID | Description | Input Element Type |
| - | - | - |
| `invalid-card-number` | Card number is not valid. | `PrimerInputElementType.CARD_NUMBER` |
| `invalid-expiry-date` | Card expiry date is not valid. Valid expiry date format is MM/YYYY. | `PrimerInputElementType.EXPIRY_DATE` |
| `invalid-cardholder-name` | Cardholder name cannot be blank. | `PrimerInputElementType.CARDHOLDER_NAME` |

#### PrimerOtpData

| Error ID | Description | Input Element Type |
| - | - | - |
| `invalid-otp-code` | OTP code is not valid. | `PrimerInputElementType.OTP_CODE` |

#### PrimerPhoneNumberData

| Error ID | Description | Input Element Type |
| - | - | - |
| `invalid-phone-number` | Phone number is not valid. | `PrimerInputElementType.PHONE_NUMBER` |

#### PrimerRetailerData

| Error ID | Description | Input Element Type |
| - | - | - |
| `invalid-retailer` | Retailer outlet ID can be only from list of retailers. | `PrimerInputElementType.RETAIL_OUTLET` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.