# KEXET-0142: TryReturnsUndeclared

- Severity: error
- Stage: Types
- Message: `` `.try` can fail, and `{name}` declares no result and `return`s: declare it, as `{type}?` or `{type} or! E`, or handle the failure with `trying` or a `rescue` ``
- Slots: `name`, `type`
- Page: https://oops.kex.run/KEXET-0142/

The compiler reports it as:

```
file.kex:LINE:COLUMN: [KEXET-0142]: Error, `.try` can fail, and `{name}` declares no result and `return`s: declare it, as `{type}?` or `{type} or! E`, or handle the failure with `trying` or a `rescue`
```

No explanation of this code has been written yet. The message above is all the compiler says about it.
