API Client
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
OneCRM\APIClient\Error Class Reference
Inheritance diagram for OneCRM\APIClient\Error:

Public Member Functions

 getHint ()
 
 getType ()
 

Static Public Member Functions

static fromAPIResponse ($code, $response)
 

Protected Attributes

 $hint
 
 $error_type
 

Detailed Description

Represents an API error

Member Function Documentation

static OneCRM\APIClient\Error::fromAPIResponse (   $code,
  $response 
)
static

Creates an error object from API reply

OneCRM\APIClient\Error::getHint ( )

Gets error hint

1CRM REST API can return hint with an error to suggest a possible fix.

OneCRM\APIClient\Error::getType ( )

Gets error type returned from 1CRM REST API


The documentation for this class was generated from the following file: