Exception thrown when a request fails.

Instantiable
ExtendsGoogle\Cloud\Core\Exception\GoogleException
Exception
ImplementsThrowable
Methods
public __construct( $message, $code = NULL, ?Exception $serviceException = NULL, array $metadata = [])
 
Handle previous exceptions differently here.

    public Exception::__toString()
    public Exception::__wakeup()
    public final Exception::getCode()
    public final Exception::getFile()
    public final Exception::getLine()
    public final Exception::getMessage()
    public getMetadata()
     
    Get exception metadata.

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

    • return Exception
    public final Exception::getTrace()
    public final Exception::getTraceAsString()
    public hasServiceException()
     
    If $serviceException is set, return true.

    • return bool
    Properties
    protected Exception::$code
    protected Exception::$file
    protected Exception::$line
    protected Exception::$message
    protected $metadata
     


    • var array
    Properties
    private $serviceException
     


    • var Exception
    Methods
    private final Exception::__clone()
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only