ErrorDetails Class
- java.
lang. Object - com.
microsoft. azure. management. network. ErrorDetails
- com.
public class ErrorDetails
Common error details representation.
Constructor Summary
Constructor | Description | |
---|---|---|
ErrorDetails() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
code()
Get error code. |
java.lang.String |
message()
Get error message. |
java.lang.String |
target()
Get error target. |
Error |
withCode(String code)
Set error code. |
Error |
withMessage(String message)
Set error message. |
Error |
withTarget(String target)
Set error target. |
Methods inherited from java.lang.Object
Constructor Details
ErrorDetails
public ErrorDetails()
Method Details
code
public String code()
Get error code.
Returns:
message
public String message()
Get error message.
Returns:
target
public String target()
Get error target.
Returns:
withCode
public ErrorDetails withCode(String code)
Set error code.
Parameters:
Returns:
withMessage
public ErrorDetails withMessage(String message)
Set error message.
Parameters:
Returns:
withTarget
public ErrorDetails withTarget(String target)
Set error target.
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