bevy_ecs/world/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
//! Contains error types returned by bevy's schedule.

use thiserror::Error;

use crate::schedule::InternedScheduleLabel;

/// The error type returned by [`World::try_run_schedule`] if the provided schedule does not exist.
///
/// [`World::try_run_schedule`]: crate::world::World::try_run_schedule
#[derive(Error, Debug)]
#[error("The schedule with the label {0:?} was not found.")]
pub struct TryRunScheduleError(pub InternedScheduleLabel);