File tree 3 files changed +8
-6
lines changed
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -1276,7 +1276,7 @@ impl App {
1276
1276
1277
1277
/// Set the global system error handler to use for systems that return a [`Result`].
1278
1278
///
1279
- /// See the [`bevy_ecs::result ` module-level documentation](../../ bevy_ecs/result/index.html )
1279
+ /// See the [`bevy_ecs::error ` module-level documentation](bevy_ecs::error )
1280
1280
/// for more information.
1281
1281
pub fn set_system_error_handler (
1282
1282
& mut self ,
Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ impl SubApp {
338
338
339
339
/// Set the global error handler to use for systems that return a [`Result`].
340
340
///
341
- /// See the [`bevy_ecs::result ` module-level documentation](../../ bevy_ecs/result/index.html )
341
+ /// See the [`bevy_ecs::error ` module-level documentation](bevy_ecs::error )
342
342
/// for more information.
343
343
pub fn set_system_error_handler (
344
344
& mut self ,
Original file line number Diff line number Diff line change 8
8
//! [`panic`] error handler function is used, resulting in a panic with the error message attached.
9
9
//!
10
10
//! You can change the default behavior by registering a custom error handler, either globally or
11
- //! per `Schedule`:
11
+ //! per [ `Schedule`] :
12
12
//!
13
- //! - [ `App::set_system_error_handler`] sets the global error handler for all systems of the
14
- //! current [`World`].
13
+ //! - `App::set_system_error_handler` (via `bevy_app`) sets the global error handler for all systems of the
14
+ //! current [`World`] by modifying the [`DefaultSystemErrorHandler`] .
15
15
//! - [`Schedule::set_error_handler`] sets the error handler for all systems of that schedule.
16
16
//!
17
17
//! Bevy provides a number of pre-built error-handlers for you to use:
@@ -76,5 +76,7 @@ mod handler;
76
76
pub use bevy_error:: * ;
77
77
pub use handler:: * ;
78
78
79
- /// A result type for use in fallible systems.
79
+ /// A result type for use in fallible systems, commands and observers.
80
+ ///
81
+ /// The [`BevyError`] type is a type-erased error type with optional Bevy-specific diagnostics.
80
82
pub type Result < T = ( ) , E = BevyError > = core:: result:: Result < T , E > ;
You can’t perform that action at this time.
0 commit comments