ConnectionException
extends SdkException
in package
This is the Exception class for errors throwed when API recovered data is a error.
Table of Contents
CONNECTION_ERROR | = 'F030-C000' | |
---|---|---|
__construct() | Constructor. Creates the exception. | : mixed |
__toString() | Auto-invoked using echo or concatenations. | : string |
getError() | Returns the exception error. | : Error |
Constants
CONNECTION_ERROR
public
mixed
CONNECTION_ERROR
= 'F030-C000'
Methods
__construct()
Constructor. Creates the exception.
public
__construct(Error $error) : mixed
Parameters
- $error : Error
-
The error that has thrown the exception
Tags
Return values
mixed —__toString()
Auto-invoked using echo or concatenations.
public
__toString() : string
Useful to log errors.
Return values
string —getError()
Returns the exception error.
public
getError() : Error