Class Error
java.lang.Object
com.microsoft.azure.management.network.Error
Common error representation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()Get error code.details()Get error details.Get inner error message.message()Get error message.target()Get error target.Set error code.withDetails(List<ErrorDetails> details) Set error details.withInnerError(String innerError) Set inner error message.withMessage(String message) Set error message.withTarget(String target) Set error target.
-
Constructor Details
-
Error
public Error()
-
-
Method Details
-
code
Get error code.- Returns:
- the code value
-
withCode
Set error code.- Parameters:
code- the code value to set- Returns:
- the Error object itself.
-
message
Get error message.- Returns:
- the message value
-
withMessage
Set error message.- Parameters:
message- the message value to set- Returns:
- the Error object itself.
-
target
Get error target.- Returns:
- the target value
-
withTarget
Set error target.- Parameters:
target- the target value to set- Returns:
- the Error object itself.
-
details
Get error details.- Returns:
- the details value
-
withDetails
Set error details.- Parameters:
details- the details value to set- Returns:
- the Error object itself.
-
innerError
Get inner error message.- Returns:
- the innerError value
-
withInnerError
Set inner error message.- Parameters:
innerError- the innerError value to set- Returns:
- the Error object itself.
-