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.
| Parameters | |
|---|---|
| Name | Description |
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.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasCode
clearCode
setCode
[Output Only] The error type identifier for this error.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$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.
| Returns | |
|---|---|
| Type | Description |
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.
| Parameter | |
|---|---|
| Name | Description |
var |
array<ErrorDetails>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLocation
[Output Only] Indicates the field in the request that caused the error. This property is optional.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasLocation
clearLocation
setLocation
[Output Only] Indicates the field in the request that caused the error. This property is optional.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMessage
[Output Only] An optional, human-readable error message.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasMessage
clearMessage
setMessage
[Output Only] An optional, human-readable error message.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|