InvalidStatusException
final class InvalidStatusException extends FossabotApiException (View source)
Fossabot API exception thrown when the return status of a call is not 200, or one of the special ones (i.e. rate limit, invalid token, etc.).
Methods
__construct(string $fossabotCode, string $errorClass, string $errorMessage, int $statusCode, array|null $body = null, Throwable|null $previous = null)
Constructs a new FossabotApiException class.
from
FossabotApiException
Details
__construct(string $fossabotCode, string $errorClass, string $errorMessage, int $statusCode, array|null $body = null, Throwable|null $previous = null)
Constructs a new FossabotApiException class.
string
fossabotCode()
Error code from Fossabot API response.
string
errorClass()
Error class (error param) from Fossabot API response.
string
errorMessage()
Error message from Fossabot API response.
int
statusCode()
HTTP status code from Fossabot API exception.
array|null
body()
Parsed HTTP body from Fossabot API exception.
__toString()
{@inheritDoc}