ErrorHandler typedef
Receives errors and warnings as data instead of an exception.
Assign one to Story.onError; without one, the first problem in a
continue throws a StoryException.
Implementation
typedef ErrorHandler = void Function(String message, ErrorType type);