final class CannotValidateRequestException extends FossabotApiException (View source)

Exception thrown when validating the request fails.

Methods

__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}

Details

__construct(string $fossabotCode, string $errorClass, string $errorMessage, int $statusCode, array|null $body = null, Throwable|null $previous = null)

Constructs a new FossabotApiException class.

Parameters

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

Throwable|null $previous

Previous exception

string fossabotCode()

Error code from Fossabot API response.

Return Value

string

Fossabot error code

string errorClass()

Error class (error param) from Fossabot API response.

Return Value

string

Error class

string errorMessage()

Error message from Fossabot API response.

Return Value

string

Error message

int statusCode()

HTTP status code from Fossabot API exception.

Return Value

int

HTTP status code

array|null body()

Parsed HTTP body from Fossabot API exception.

Return Value

array|null

HTTP body

__toString()

{@inheritDoc}