Improve error handling

This commit is contained in:
Mihai Dinculescu
2022-10-24 19:45:28 +01:00
parent 7186d61467
commit f47a597557
4 changed files with 31 additions and 24 deletions

View File

@@ -8,6 +8,10 @@ file. This change log follows the conventions of
## Changed
- `SimConnect::get_next_dispatch` will now return an error of type `SimConnectError::UnimplementedMessageType` instead of panicking on unrecognized notification types.
- `SimConnect::get_next_dispatch` will now return an error of type `SimConnectError::SimConnectException` instead of `Notification::Exception`.
- `SimConnectError::SimConnectUnrecognizedEvent` has been renamed to `SimConnectError::UnimplementedEventType`.
- `#[non_exhaustive]` has been added to the `SimConnectError` and `Notification` enums.
- The tracing information has been adjusted to be at the `info` and `debug` levels instead of `info`.
## [v0.1.2] - 2022-10-22