Reference documentation and code samples for the Compute V1 Client class Errors.
Generated from protobuf message google.cloud.compute.v1.Errors
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ code
string
[Output Only] The error type identifier for this error.
↳ error_details
array< Google\Cloud\Compute\V1\ErrorDetails
>
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
↳ location
string
[Output Only] Indicates the field in the request that caused the error. This property is optional.
↳ message
string
[Output Only] An optional, human-readable error message.
getCode
[Output Only] The error type identifier for this error.
Generated from protobuf field optional string code = 3059181;
string
hasCode
clearCode
setCode
[Output Only] The error type identifier for this error.
Generated from protobuf field optional string code = 3059181;
var
string
$this
getErrorDetails
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
Generated from protobuf field repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
Google\Protobuf\Internal\RepeatedField
setErrorDetails
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
Generated from protobuf field repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
$this
getLocation
[Output Only] Indicates the field in the request that caused the error. This property is optional.
Generated from protobuf field optional string location = 290430901;
string
hasLocation
clearLocation
setLocation
[Output Only] Indicates the field in the request that caused the error. This property is optional.
Generated from protobuf field optional string location = 290430901;
var
string
$this
getMessage
[Output Only] An optional, human-readable error message.
Generated from protobuf field optional string message = 418054151;
string
hasMessage
clearMessage
setMessage
[Output Only] An optional, human-readable error message.
Generated from protobuf field optional string message = 418054151;
var
string
$this