Struct specs::common::Errors
[−]
[src]
pub struct Errors { pub errors: Vec<BoxedErr>, }
A resource you can use to store errors that occurred outside of the ECS but were catched inside, therefore should be handled by the user.
Fields
errors: Vec<BoxedErr>
The collection of errors.
Methods
impl Errors
[src]
pub fn new() -> Self
[src]
Creates a new instance of Errors
.
pub fn add(&mut self, error: BoxedErr)
[src]
Add an error to the error Vec
.
pub fn print_and_exit(&mut self)
[src]
Prints all errors and exits in case there's been an error. Useful for debugging.