//[ui](../../../index.md)/[com.yandex.payment.sdk.ui.cardscanner](../index.md)/[CameraScannerResult](index.md)/[onError](on-error.md)

# onError

[ui]\
abstract fun [onError](on-error.md)(error: [CardScannerError](../-card-scanner-error/index.md))

Произошла ошибка.

## Parameters

ui

| | |
|---|---|
| error | данные об ошибке. |
