class AlligatorCurrencyException extends AlligatorException

Class AlligatorCurrencyException. Custom extension for errors with currency

Properties

protected int $statusCode from AlligatorException

Methods

JsonResponse
getResponse()

No description

__construct(int|string $statusCode = Response::HTTP_FAILED_DEPENDENCY, null|string $message = "Unknown ratio for currency.", 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 30
__construct(int|string $statusCode = Response::HTTP_FAILED_DEPENDENCY, null|string $message = "Unknown ratio for currency.", Exception $previous = null, array $headers = array(), int $code = 0)

Parameters

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

at line 43
array getHeaders()

Return Value

array

at line 53
int getStatusCode()

Returns the status code.

Return Value

int An HTTP response status code