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 UserError raised by a verb and renders it as a bold red line; verbs do not need to try/except around calls that may raise these. Subclasses customize the default message rendered to the player.