mirror of
https://github.com/bevyengine/bevy
synced 2024-11-14 00:47:32 +00:00
dea292d199
# Objective - Make it easy to use HexColorError with `thiserror`, i.e. converting it into other error types. Makes this possible: ```rust #[derive(Debug, thiserror::Error)] pub enum LdtkError { #[error("An error occured while deserializing")] Json(#[from] serde_json::Error), #[error("An error occured while parsing a color")] HexColor(#[from] bevy::render::color::HexColorError), } ``` ## Solution - Derive thiserror::Error the same way we do elsewhere (see query.rs for instance) |
||
---|---|---|
.. | ||
bevy_app | ||
bevy_asset | ||
bevy_audio | ||
bevy_core | ||
bevy_derive | ||
bevy_diagnostic | ||
bevy_dylib | ||
bevy_dynamic_plugin | ||
bevy_ecs | ||
bevy_gilrs | ||
bevy_gltf | ||
bevy_input | ||
bevy_internal | ||
bevy_log | ||
bevy_macro_utils | ||
bevy_math | ||
bevy_pbr | ||
bevy_reflect | ||
bevy_render | ||
bevy_scene | ||
bevy_sprite | ||
bevy_tasks | ||
bevy_text | ||
bevy_transform | ||
bevy_ui | ||
bevy_utils | ||
bevy_wgpu | ||
bevy_window | ||
bevy_winit |