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');
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
[optional] Configuration options. |
info
Returns a serializable array representing this Link.
Returns | |
---|---|
Type | Description |
array |