\de\m4taiori\spiget4php\exceptionsSpigetException

An exception thrown by invalid API results.

Class SpigetException

Summary

Methods
Properties
Constants
__construct()
getHttpErrorCode()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$http_error_code
N/A

Properties

$http_error_code

$http_error_code : integer

Type

integer — The error-code transmitted by the API.

Methods

__construct()

__construct(string  $message = "", integer  $http_code, integer  $code, \Throwable|null  $previous = null) 

SpigetException constructor.

Parameters

string $message

The error-message.

integer $http_code

The http-error code.

integer $code

The error-code. NOT the http-error-code!

\Throwable|null $previous

The previous throwable.

getHttpErrorCode()

getHttpErrorCode() : integer

Get the http-error code.

Returns

integer