Compute V1 Client - Class ErrorDetails (2.14.1)

Reference documentation and code samples for the Compute V1 Client class ErrorDetails.

Container for structured error details providing additional context specific to the encountered error code.

Generated from protobuf message google.cloud.compute.v1.ErrorDetails

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ error_info ErrorInfo

Error information containing structured domain, reason, and metadata.

↳ help Help

Links and information to help the user resolve the error.

↳ localized_message LocalizedMessage

A localized human-readable error message intended for end users.

↳ quota_info QuotaExceededInfo

Details about quota limits and metrics when a quota is exceeded.

getErrorInfo

Error information containing structured domain, reason, and metadata.

Returns
Type Description
ErrorInfo|null

hasErrorInfo

clearErrorInfo

setErrorInfo

Error information containing structured domain, reason, and metadata.

Parameter
Name Description
var ErrorInfo
Returns
Type Description
$this

getHelp

Links and information to help the user resolve the error.

Returns
Type Description
Help|null

hasHelp

clearHelp

setHelp

Links and information to help the user resolve the error.

Parameter
Name Description
var Help
Returns
Type Description
$this

getLocalizedMessage

A localized human-readable error message intended for end users.

Returns
Type Description
LocalizedMessage|null

hasLocalizedMessage

clearLocalizedMessage

setLocalizedMessage

A localized human-readable error message intended for end users.

Parameter
Name Description
var LocalizedMessage
Returns
Type Description
$this

getQuotaInfo

Details about quota limits and metrics when a quota is exceeded.

Returns
Type Description
QuotaExceededInfo|null

hasQuotaInfo

clearQuotaInfo

setQuotaInfo

Details about quota limits and metrics when a quota is exceeded.

Parameter
Name Description
var QuotaExceededInfo
Returns
Type Description
$this