Meilisearch PHP | Documentation

ApiException extends Exception
in package
implements ExceptionInterface

Table of Contents

Interfaces

ExceptionInterface

Constants

HINT_MESSAGE  = "Hint: It might not be working because maybe you're not up to date with the Meilisearch version that `%s` call requires."

Properties

$errorCode  : string|null
$errorLink  : string|null
$errorType  : string|null
$httpBody  : mixed
$httpStatus  : mixed
$message  : mixed

Methods

__construct()  : mixed
__toString()  : mixed
rethrowWithHint()  : mixed
getErrorCodeFromHttpBody()  : string|null
getErrorLinkFromHttpBody()  : string|null
getErrorTypeFromHttpBody()  : string|null
getMessageFromHttpBody()  : string|null

Constants

HINT_MESSAGE

public mixed HINT_MESSAGE = "Hint: It might not be working because maybe you're not up to date with the Meilisearch version that `%s` call requires."

Properties

Methods

__construct()

public __construct(ResponseInterface $response, mixed $httpBody[, mixed $previous = null ]) : mixed
Parameters
$response : ResponseInterface
$httpBody : mixed
$previous : mixed = null

rethrowWithHint()

public static rethrowWithHint(Exception $e, string $methodName) : mixed
Parameters
$e : Exception
$methodName : string

getErrorCodeFromHttpBody()

private getErrorCodeFromHttpBody() : string|null
Return values
string|null

getErrorLinkFromHttpBody()

private getErrorLinkFromHttpBody() : string|null
Return values
string|null

getErrorTypeFromHttpBody()

private getErrorTypeFromHttpBody() : string|null
Return values
string|null

getMessageFromHttpBody()

private getMessageFromHttpBody() : string|null
Return values
string|null

On this page

Search results