class UserAnonymousException extends AlligatorException

Exception thrown when user doesn't have permission to do specific action

Class UserAnonymousException

Properties

protected int $statusCode from AlligatorException

Methods

JsonResponse
getResponse()

No description

__construct(int|string $statusCode = 507, string $message = 'Login to add to cart!', Exception $previous = null, array $headers = array(), int $code = 0)

No description

array
getHeaders()

No description

int
getStatusCode()

Returns the status code.

Details

in AlligatorException at line 28
JsonResponse getResponse()

Return Value

JsonResponse

at line 32
__construct(int|string $statusCode = 507, string $message = 'Login to add to cart!', Exception $previous = null, array $headers = array(), int $code = 0)

Parameters

int|string $statusCode
string $message
Exception $previous
array $headers
int $code

at line 45
array getHeaders()

Return Value

array

at line 55
int getStatusCode()

Returns the status code.

Return Value

int An HTTP response status code