Stackdriver Trace Client - Class Status (1.8.8)

Reference documentation and code samples for the Stackdriver Trace Client class Status.

This plain PHP class represents a Status resource. The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.

Example:

use Google\Cloud\Trace\Status;

$status = new Status(200, 'OK');

Namespace

Google \ Cloud \ Trace

Methods

__construct

Create a new Status.

Parameters
Name Description
code int

The status code, which should be an enum value of google.rpc.Code.

message string

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.

options array

'details' A list of messages that carry the error details. There is a common set of message types for APIs to use. An object containing fields of an arbitrary type. An additional field "@type" contains a URI identifying the type.

info

Returns a serializable array representing this Link.

Returns
Type Description
array