Class ExtendedErrorInfo
java.lang.Object
com.azure.resourcemanager.logic.models.ExtendedErrorInfo
The extended error info.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncode()
Get the code property: The error code.details()
Get the details property: The error message details.Get the innerError property: The inner error.message()
Get the message property: The error message.void
validate()
Validates the instance.withCode
(ErrorResponseCode code) Set the code property: The error code.withDetails
(List<ExtendedErrorInfo> details) Set the details property: The error message details.withInnerError
(Object innerError) Set the innerError property: The inner error.withMessage
(String message) Set the message property: The error message.
-
Constructor Details
-
ExtendedErrorInfo
public ExtendedErrorInfo()Creates an instance of ExtendedErrorInfo class.
-
-
Method Details
-
code
Get the code property: The error code.- Returns:
- the code value.
-
withCode
Set the code property: The error code.- Parameters:
code
- the code value to set.- Returns:
- the ExtendedErrorInfo object itself.
-
message
Get the message property: The error message.- Returns:
- the message value.
-
withMessage
Set the message property: The error message.- Parameters:
message
- the message value to set.- Returns:
- the ExtendedErrorInfo object itself.
-
details
Get the details property: The error message details.- Returns:
- the details value.
-
withDetails
Set the details property: The error message details.- Parameters:
details
- the details value to set.- Returns:
- the ExtendedErrorInfo object itself.
-
innerError
Get the innerError property: The inner error.- Returns:
- the innerError value.
-
withInnerError
Set the innerError property: The inner error.- Parameters:
innerError
- the innerError value to set.- Returns:
- the ExtendedErrorInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-