bevy/crates/bevy_ecs/src/system
Chris Russell 9daf4e7c8b
Include SystemParamValidationError in RunSystemError and RegisteredSystemError (#18666)
# Objective

Provide more useful errors when `World::run_system` and related methods
fail parameter validation.

Let callers determine whether the validation failure would have skipped
or failed the system.

Follow-up to #18541.

## Solution

Add a `SystemParamValidationError` value to the
`RunSystemError::InvalidParams` and
`RegisteredSystemError::InvalidParams` variants. That includes the
complete context of the parameter validation error, including the
`skipped` flag.
2025-04-01 19:27:08 +00:00
..
commands Add notes to fallible commands (#18649) 2025-04-01 02:51:53 +00:00
adapter_system.rs Fix run_system for adapter systems wrapping exclusive systems (#18406) 2025-03-26 13:40:42 +00:00
builder.rs Support using FilteredResources with ReflectResource. (#15624) 2025-02-16 19:56:19 +00:00
combinator.rs Fix run_system for adapter systems wrapping exclusive systems (#18406) 2025-03-26 13:40:42 +00:00
exclusive_function_system.rs Fix run_system for adapter systems wrapping exclusive systems (#18406) 2025-03-26 13:40:42 +00:00
exclusive_system_param.rs
function_system.rs Replace ValidationOutcome with Result (#18541) 2025-03-26 03:36:16 +00:00
input.rs
mod.rs Generic system config (#17962) 2025-03-12 00:12:30 +00:00
observer_system.rs Fix run_system for adapter systems wrapping exclusive systems (#18406) 2025-03-26 13:40:42 +00:00
query.rs Improve Query's top-level documentation (#18622) 2025-03-31 18:12:24 +00:00
schedule_system.rs Fix run_system for adapter systems wrapping exclusive systems (#18406) 2025-03-26 13:40:42 +00:00
system_name.rs
system_param.rs Use Display instead of Debug in the default error handler (#18629) 2025-03-31 18:28:19 +00:00
system_registry.rs Include SystemParamValidationError in RunSystemError and RegisteredSystemError (#18666) 2025-04-01 19:27:08 +00:00
system.rs Include SystemParamValidationError in RunSystemError and RegisteredSystemError (#18666) 2025-04-01 19:27:08 +00:00