pub trait Error { // Required method fn throw(&self); }
Every error type must implement this trait.
Prints the error message and sets the error flag.