Sage Intacct SDK for PHP
ResponseException Class Reference
Inheritance diagram for ResponseException:
ResultException

Public Member Functions

 __construct (string $message, array $errors=[], int $code=0, \Exception $previous=null)
 
 getErrors ()
 

Protected Attributes

 $errors
 

Detailed Description

Class ResponseException

A ResponseException being thrown is generally a problem with client or request config.

Constructor & Destructor Documentation

◆ __construct()

__construct ( string  $message,
array  $errors = [],
int  $code = 0,
\Exception  $previous = null 
)

Initializes the class

Parameters
string$message
array$errors
int$code
\Exception$previous

Reimplemented in ResultException.

Member Function Documentation

◆ getErrors()

getErrors ( )

Get response errors as an array

Returns
array

Field Documentation

◆ $errors

$errors
protected