ExceptionConverter
in package
Table of Contents
- TYPE_URL_ERROR_INFO = "type.googleapis.com/google.rpc.ErrorInfo"
- TYPE_URL_PRECONDITION_FAILURE = "type.googleapis.com/google.rpc.PreconditionFailure"
- TYPE_URL_RESOURCE_INFO = "type.googleapis.com/google.rpc.ResourceInfo"
- convertError() : RequestBehaviour
- convertToCouchbaseException() : RequestBehaviour
Constants
TYPE_URL_ERROR_INFO
private
mixed
TYPE_URL_ERROR_INFO
= "type.googleapis.com/google.rpc.ErrorInfo"
TYPE_URL_PRECONDITION_FAILURE
private
mixed
TYPE_URL_PRECONDITION_FAILURE
= "type.googleapis.com/google.rpc.PreconditionFailure"
TYPE_URL_RESOURCE_INFO
private
mixed
TYPE_URL_RESOURCE_INFO
= "type.googleapis.com/google.rpc.ResourceInfo"
Methods
convertError()
public
static convertError(stdClass $status, ProtostellarRequest $request) : RequestBehaviour
Parameters
- $status : stdClass
- $request : ProtostellarRequest
Return values
RequestBehaviour —convertToCouchbaseException()
private
static convertToCouchbaseException(Status $status, ProtostellarRequest $request) : RequestBehaviour
Parameters
- $status : Status
- $request : ProtostellarRequest