Class ErrorDetail
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.ErrorDetail
-
public final class ErrorDetail extends Object
Error Detail class which encapsulates Code, Message and Recommendations.
-
-
Constructor Summary
Constructors Constructor Description ErrorDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
code()
Get the code property: Error code.String
message()
Get the message property: Error Message related to the Code.List<String>
recommendations()
Get the recommendations property: List of recommendation strings.void
validate()
Validates the instance.
-
-
-
Method Detail
-
code
public String code()
Get the code property: Error code.- Returns:
- the code value.
-
message
public String message()
Get the message property: Error Message related to the Code.- Returns:
- the message value.
-
recommendations
public List<String> recommendations()
Get the recommendations property: List of recommendation strings.- Returns:
- the recommendations value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-