class AlligatorRedirectException extends AlligatorException

Exception thrown when there is an error and user should be redirected to new page

Class AlligatorRedirectException

Properties

protected int $statusCode from AlligatorException

Methods

JsonResponse
getResponse()

No description

__construct(RedirectResponse $redirectResponse, string $message = "", int $statusCode = Response::HTTP_PERMANENTLY_REDIRECT, Exception $previous = null, array $headers = array(), int $code = 304)

AlligatorRedirectException constructor.

RedirectResponse
getRedirectResponse()

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 39
__construct(RedirectResponse $redirectResponse, string $message = "", int $statusCode = Response::HTTP_PERMANENTLY_REDIRECT, Exception $previous = null, array $headers = array(), int $code = 304)

AlligatorRedirectException constructor.

Parameters

RedirectResponse $redirectResponse
string $message
int $statusCode
Exception $previous
array $headers
int $code

at line 50
RedirectResponse getRedirectResponse()

Return Value

RedirectResponse

at line 58
array getHeaders()

Return Value

array

at line 68
int getStatusCode()

Returns the status code.

Return Value

int An HTTP response status code