# Exit error

Exit error deyimi, komut dosyası yürütmesini sonlandırır ve kullanıcı tanımlı bir komut dosyası hatası verir.

Exit Error expression [(when | unless condition)]

Exit error bir kontrol ifadesi olduğundan, noktalı virgül veya satır sonu ile sonlandırılır ve bir satır sınırını geçmemelidir.

Bağımsız değişkenler

| Bağımsız değişken | Açıklama |
| --- | --- |
| expression | Değerlendirilen ve kullanıcı tarafından oluşturulan komut dosyası hata mesajı olarak döndürülen bir değer. |
| when / unless condition | İsteğe bağlı koşul. Koşul doğru olduğunda when hatayı tetikler. Koşul yanlış olduğunda unless hatayı tetikler. |

```
//Exit error
Exit Error 'Load validation failed';
```

```
//Exit error when a condition is fulfilled
Exit Error 'Source connection unavailable' when vConnectionOk=0;
```

```
//Exit error unless a condition is fulfilled
Exit Error 'Required variable is missing' unless len(trim(vRequiredVar))>0;
```

[Görselleştirmelerde grafik düzeyinde komut dosyası kullanma](https://help.qlik.com/tr-TR/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartLevelScripting/chart-level-scripting.htm)

[Exit](https://help.qlik.com/tr-TR/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartLevelScripting/ControlStatements/Exit.htm)

[Exit script](https://help.qlik.com/tr-TR/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartLevelScripting/ControlStatements/exit-script.htm)

[Kontrol ifadeleri](https://help.qlik.com/tr-TR/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartLevelScripting/modifier-control-statements.htm)