EngineHub / EngineHub/CommandHelper
Add tryelse()
Đang mở
feature request
good first issue
- Ngôn ngữ chính
- Java
- Star
- 128
- Fork
- 70
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Add a function tryelse, which accepts two statement, trying the first one, and returning it if successful, otherwise, returning the else.
```
string @a = tryelse(functionThatThrows(), 'default');
```
If scream-errors is true, the exception will still be logged.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.