PHP Class Google\Cloud\Exception\ServiceException

Inheritance: extends GoogleException
Datei anzeigen Open project: GoogleCloudPlatform/gcloud-php Class Usage Examples

Public Methods

Method Description
__construct ( string $message, integer $code = null, Exception $serviceException = null ) Handle previous exceptions differently here.
getServiceException ( ) : Exception Return the service exception object.
hasServiceException ( ) : boolean If $serviceException is set, return true.

Method Details

__construct() public method

Handle previous exceptions differently here.
public __construct ( string $message, integer $code = null, Exception $serviceException = null )
$message string
$code integer
$serviceException Exception

getServiceException() public method

Return the service exception object.
public getServiceException ( ) : Exception
return Exception

hasServiceException() public method

If $serviceException is set, return true.
public hasServiceException ( ) : boolean
return boolean