ApiException
extends Exception
in package
implements
Stringable, ExceptionInterface
FinalYes
Table of Contents
Interfaces
- Stringable
- 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 : int
- $response : ResponseInterface
Methods
- __construct() : mixed
- __toString() : string
- rethrowWithHint() : Exception
- 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
$errorCode read-only
public
string|null
$errorCode
$errorLink read-only
public
string|null
$errorLink
$errorType read-only
public
string|null
$errorType
$httpBody read-only
public
mixed
$httpBody
$httpStatus read-only
public
int
$httpStatus
$response read-only
public
ResponseInterface
$response
Methods
__construct()
public
__construct(ResponseInterface $response, mixed $httpBody[, Throwable|null $previous = null ]) : mixed
Parameters
- $response : ResponseInterface
- $httpBody : mixed
- $previous : Throwable|null = null
__toString()
public
__toString() : string
Return values
stringrethrowWithHint()
public
static rethrowWithHint(Throwable $e, string $methodName) : Exception
Parameters
- $e : Throwable
- $methodName : string
Return values
ExceptiongetErrorCodeFromHttpBody()
private
getErrorCodeFromHttpBody() : string|null
Return values
string|nullgetErrorLinkFromHttpBody()
private
getErrorLinkFromHttpBody() : string|null
Return values
string|nullgetErrorTypeFromHttpBody()
private
getErrorTypeFromHttpBody() : string|null
Return values
string|nullgetMessageFromHttpBody()
private
getMessageFromHttpBody() : string|null