AdditionalErrorInfo Class
- java.
lang. Object - com.
azure. resourcemanager. databox. models. AdditionalErrorInfo
- com.
public final class AdditionalErrorInfo
This class represents additional info which Resource Providers pass when an error occurs.
Constructor Summary
Constructor | Description |
---|---|
AdditionalErrorInfo() |
Creates an instance of Additional |
Method Summary
Modifier and Type | Method and Description |
---|---|
Object |
info()
Get the info property: Additional information of the type of error. |
String |
type()
Get the type property: Type of error (e. |
void |
validate()
Validates the instance. |
Additional |
withInfo(Object info)
Set the info property: Additional information of the type of error. |
Additional |
withType(String type)
Set the type property: Type of error (e. |
Methods inherited from java.lang.Object
Constructor Details
AdditionalErrorInfo
public AdditionalErrorInfo()
Creates an instance of AdditionalErrorInfo class.
Method Details
info
public Object info()
Get the info property: Additional information of the type of error.
Returns:
type
public String type()
Get the type property: Type of error (e.g. CustomerIntervention, PolicyViolation, SecurityViolation).
Returns:
validate
public void validate()
Validates the instance.
withInfo
public AdditionalErrorInfo withInfo(Object info)
Set the info property: Additional information of the type of error.
Parameters:
Returns:
withType
public AdditionalErrorInfo withType(String type)
Set the type property: Type of error (e.g. CustomerIntervention, PolicyViolation, SecurityViolation).
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for