Status
extends Message
in package
The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.
Generated from protobuf message opentelemetry.proto.trace.v1.Status
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- getCode() : int
- The status code.
- getMessage() : string
- A developer-facing human readable error message.
- setCode() : $this
- The status code.
- setMessage() : $this
- A developer-facing human readable error message.
Properties
$code
The status code.
protected
mixed
$code
= 0
Generated from protobuf field .opentelemetry.proto.trace.v1.Status.StatusCode code = 3;
$message
A developer-facing human readable error message.
protected
mixed
$message
= ''
Generated from protobuf field string message = 2;
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
- $data : array<string|int, mixed> = NULL
-
{ Optional. Data for populating the Message object.
@type string $message A developer-facing human readable error message. @type int $code The status code.
}
getCode()
The status code.
public
getCode() : int
Generated from protobuf field .opentelemetry.proto.trace.v1.Status.StatusCode code = 3;
Return values
intgetMessage()
A developer-facing human readable error message.
public
getMessage() : string
Generated from protobuf field string message = 2;
Return values
stringsetCode()
The status code.
public
setCode(int $var) : $this
Generated from protobuf field .opentelemetry.proto.trace.v1.Status.StatusCode code = 3;
Parameters
- $var : int
Return values
$thissetMessage()
A developer-facing human readable error message.
public
setMessage(string $var) : $this
Generated from protobuf field string message = 2;
Parameters
- $var : string