# Class ScanConfigError (1.21.0)

1.21.0 (latest) 1.20.0 1.19.0 1.18.0 1.17.2 1.16.0 1.15.1 1.14.5 1.13.0 1.12.2 1.11.1 1.10.0 1.9.2 1.8.3 1.7.2 1.6.1 1.5.0 1.4.3 1.3.0 1.2.0 1.1.0 1.0.0 0.4.2 0.3.0

    ScanConfigError(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Defines a custom error message used by CreateScanConfig and
UpdateScanConfig APIs when scan configuration validation fails.
It is also reported as part of a ScanRunErrorTrace message if
scan validation fails due to a scan configuration error.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `code` | `https://docs.cloud.google.com/python/docs/reference/websecurityscanner/latest/google.cloud.websecurityscanner_v1.types.ScanConfigError.Code` Output only. Indicates the reason code for a configuration failure. |
| `field_name` | `str` Output only. Indicates the full name of the ScanConfig field that triggers this error, for example "scan_config.max_qps". This field is provided for troubleshooting purposes only and its actual value can change in the future. |

## Classes

### Code

    Code(value)

Output only.
Defines an error reason code.
Next id: 44