moo.core.exceptions

A variety of error classes

Exceptions

AccessError(accessor, access_str, subject)

Subclass of Python's PermissionError raised by model-layer permission checks (Object.save(), Verb.__call__(), etc.) when the caller lacks the required permission.

AmbiguousObjectError(name, matches[, message])

Raised when a name resolves to more than one object.

AmbiguousVerbError(name, matches)

Raised when verb dispatch finds more than one matching verb at the same object.

ExecutionError(code, e)

Raised when user code causes some kind of exception.

NoSuchObjectError(name)

Raised when a name does not resolve to any object in scope — typically by Parser.get_dobj() or moo.sdk.lookup().

NoSuchPrepositionError(prep)

Raised by parser methods like Parser.get_pobj_str() when the requested preposition was not present in the player's command.

NoSuchPropertyError(name[, origin])

Raised by Object.get_property() when the named property does not exist on the object or any of its ancestors.

NoSuchVerbError(name)

Raised by the parser when no verb on any candidate object matches the typed command.

QuotaError(message[, data])

Raised when @create is invoked by a player whose object quota is exhausted.

RecursiveError(message[, data])

Raised if the user attempts to put a container inside one of its contents, or set the parent of an object to one of its children.

UsageError(message[, data])

Raise when the player invoked a verb with bad syntax or missing arguments.

UserError(message[, data])

Superclass for any error that should be displayed to the player who triggered it.