eZPublishCommunityProject  2013.5
eZ\Publish\Core\Base\Exceptions\UnauthorizedException Class Reference

UnauthorizedException Exception implementation. More...

+ Inheritance diagram for eZ\Publish\Core\Base\Exceptions\UnauthorizedException:
+ Collaboration diagram for eZ\Publish\Core\Base\Exceptions\UnauthorizedException:

Public Member Functions

 __construct ($module, $function, array $properties=null, Exception $previous=null)
 Generates: User does not have access to '{$function}' '{$module}'[ with identifier '{$identifier}']. More...
 

Additional Inherited Members

- Public Attributes inherited from eZ\Publish\Core\Base\Exceptions\Httpable
const BAD_REQUEST = 400
 
const CONFLICT = 409
 
const FORBIDDEN = 403
 
const GONE = 410
 
const INTERNAL_ERROR = 500
 
const METHOD_NOT_ALLOWED = 405
 
const NOT_ACCEPTABLE = 406
 
const NOT_FOUND = 404
 
const NOT_IMPLEMENTED = 501
 
const PAYMENT_REQUIRED = 402
 
const SERVICE_UNAVAILABLE = 503
 
const UNAUTHORIZED = 401
 
const UNSUPPORTED_MEDIA_TYPE = 415
 

Detailed Description

UnauthorizedException Exception implementation.

Use: throw new UnauthorizedException( 'content', 'read', 42 );

Constructor & Destructor Documentation

eZ\Publish\Core\Base\Exceptions\UnauthorizedException::__construct (   $module,
  $function,
array  $properties = null,
Exception  $previous = null 
)

Generates: User does not have access to '{$function}' '{$module}'[ with identifier '{$identifier}'].

Example: User does not have access to 'read' 'content' with identifier '42'

Parameters
string$moduleThe module name should be in sync with the name of the domain object in question
string$function
string | null$identifier
\Exception | null$previous

The documentation for this class was generated from the following file: