Piwik\Exception\

NoPrivilegesException

Exception for a user who lacks the privileges for an action.

Unlike NoAccessException, it does not lead to the login form. The default code 401 fits a user who must confirm their identity again (password or two-factor code); pass 403 when the action is forbidden for this user.

Methods

The class defines the following methods:

__construct()

Signature

  • It accepts the following parameter(s):
    • $message (string) — The error message.
    • $code (int) — The HTTP status code to respond with.