Exception thrown when a request fails due to a failed precondition.

In REST context, this exception indicates a status code 412.

Instantiable
ExtendsGoogle\Cloud\Core\Exception\ServiceException
Google\Cloud\Core\Exception\GoogleException
Exception
ImplementsThrowable
Methods
public Google\Cloud\Core\Exception\ServiceException::__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 Google\Cloud\Core\Exception\ServiceException::getMetadata()
     
    Get exception metadata.

    public final Exception::getPrevious()
    public Google\Cloud\Core\Exception\ServiceException::getServiceException()
     
    Return the service exception object.

    • return Exception
    public final Exception::getTrace()
    public final Exception::getTraceAsString()
    public Google\Cloud\Core\Exception\ServiceException::hasServiceException()
     
    If $serviceException is set, return true.

    • return bool
    Properties
    protected Exception::$code
    protected Exception::$file
    protected Exception::$line
    protected Exception::$message
    protected Google\Cloud\Core\Exception\ServiceException::$metadata
     


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