moo.core.exceptions.UserError
- exception moo.core.exceptions.UserError(message, data=None)
Superclass for any error that should be displayed to the player who triggered it. The task runner catches every
UserErrorraised by a verb and renders it as a bold red line; verbs do not need totry/exceptaround calls that may raise these. Subclasses customize the default message rendered to the player.