Overview

Namespaces

  • Inventorus
    • Models

Classes

  • Configuration
  • InventorusClient

Exceptions

  • APIException
  • Overview
  • Namespace
  • Class

Class APIException

Class for exceptions when there is a network error, status code error, etc.

Exception
Extended by Inventorus\APIException
Namespace: Inventorus
Located at
Methods summary
public
# __construct( string $reason, integer $responseCode, string $responseBody )

The HTTP response code from the API request

The HTTP response code from the API request

Parameters

$reason
the reason for raising an exception
$responseCode
the HTTP response code from the API request
$responseBody
the HTTP response body from the API request

Overrides

Exception::__construct()
public integer
# getResponseCode( )

The HTTP response code from the API request

The HTTP response code from the API request

Returns

integer
public mixed
# getResponseBody( )

The HTTP response body from the API request

The HTTP response body from the API request

Returns

mixed
public string
# getReason( )

The reason for raising an exception

The reason for raising an exception

Returns

string
Methods inherited from Exception
__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties inherited from Exception
$code, $file, $line, $message
API documentation generated by ApiGen