Class

eZ\Publish\Core\Base\Exceptions\UnauthorizedException

class UnauthorizedException extends UnauthorizedException implements Httpable, Translatable

UnauthorizedException Exception implementation.

Use: throw new UnauthorizedException( 'content', 'read', array( 'contentId' => 42 ) );

Methods

__construct(string $module, string $function, array $properties = null, Exception $previous = null)

Generates: User does not have access to '{$function}' '{$module}'[ with: %property.key% '%property.value%'].

Details

at line 36
public __construct(string $module, string $function, array $properties = null, Exception $previous = null)

Generates: User does not have access to '{$function}' '{$module}'[ with: %property.key% '%property.value%'].

Example: User does not have access to 'read' 'content' with: id '44', type 'article'

Parameters

string $module The module name should be in sync with the name of the domain object in question
string $function
array $properties Key value pair with non sensitive data on what kind of data user does not have access to
Exception $previous