PermissionException

class PermissionException[source]

Exception raised when a permission check fails.

missing_permissions: Sequence[GlobalPermission | TenantPermission | CoursePermission]

The permissions of which any one would allow the request. It is never empty.

add_note(object, /)

Exception.add_note(note) – add a note to the exception

args
with_traceback(object, /)

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

user_id: int | None

The id of the user the check failed for, or None when it did not concern a specific user.

response: Response | None

The response that generated this error, only present if this data was parsed as toplevel exception from a response.

message: str

The user readable message for the exception.

description: str

A more detailed version of the error message.

request_id: str

The id of the request that went wrong. Please include this id when reporting bugs.