InvalidTokenException
final class InvalidTokenException extends FossabotApiException (View source)
Exception thrown when making a Fossabot API call results in a 400 response status.
Methods
__construct(string $fossabotCode, string $errorClass, string $errorMessage, array|null $body = null, Throwable|null $previous = null)
Constructs a new InvalidTokenException class.
Details
__construct(string $fossabotCode, string $errorClass, string $errorMessage, array|null $body = null, Throwable|null $previous = null)
Constructs a new InvalidTokenException 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}