ErrorDetail Class
- java.
lang. Object - com.
microsoft. azure. management. hybridcompute. v2020_08_02.ErrorDetail
- com.
public class ErrorDetail
Error details.
Constructor Summary
Constructor | Description | |
---|---|---|
ErrorDetail() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
code()
Get the error's code. |
java.util.List<Error |
details()
Get additional error details. |
java.lang.String |
message()
Get a human readable error message. |
java.lang.String |
target()
Get indicates which property in the request is responsible for the error. |
Error |
withCode(String code)
Set the error's code. |
Error |
withDetails(List<ErrorDetail> details)
Set additional error details. |
Error |
withMessage(String message)
Set a human readable error message. |
Error |
withTarget(String target)
Set indicates which property in the request is responsible for the error. |
Methods inherited from java.lang.Object
Constructor Details
ErrorDetail
public ErrorDetail()
Method Details
code
public String code()
Get the error's code.
Returns:
details
public List
Get additional error details.
Returns:
message
public String message()
Get a human readable error message.
Returns:
target
public String target()
Get indicates which property in the request is responsible for the error.
Returns:
withCode
public ErrorDetail withCode(String code)
Set the error's code.
Parameters:
Returns:
withDetails
public ErrorDetail withDetails(List
Set additional error details.
Parameters:
Returns:
withMessage
public ErrorDetail withMessage(String message)
Set a human readable error message.
Parameters:
Returns:
withTarget
public ErrorDetail withTarget(String target)
Set indicates which property in the request is responsible for the error.
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