onError property

ErrorHandler? onError
getter/setter pair

Error handler for all runtime errors in ink - i.e. problems with the source ink itself that are only discovered when playing the story. It's strongly recommended that you assign an error handler to your story instance to avoid getting exceptions for ink errors.

Implementation

ErrorHandler? onError;