Reference documentation and code samples for the Compute V1 Client class Errors.
Generated from protobuf message google.cloud.compute.v1.Errors
Namespace
Google \ Cloud \ Compute \ V1Methods
__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< 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.
string
hasCode
clearCode
setCode
[Output Only] The error type identifier for this error.
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.
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.
$this
getLocation
[Output Only] Indicates the field in the request that caused the error. This property is optional.
string
hasLocation
clearLocation
setLocation
[Output Only] Indicates the field in the request that caused the error. This property is optional.
var
string
$this
getMessage
[Output Only] An optional, human-readable error message.
string
hasMessage
clearMessage
setMessage
[Output Only] An optional, human-readable error message.
var
string
$this