UserFacingError Class
- java.
lang. Object - com.
azure. resourcemanager. dataprotection. models. UserFacingError
- com.
Implements
public final class UserFacingError
implements JsonSerializable<UserFacingError>
Error object used by layers that have access to localized content, and propagate that to user.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
code()
Get the code property: Unique code for this error. |
|
List<User |
details()
Get the details property: Additional related Errors. |
|
static
User |
fromJson(JsonReader jsonReader)
Reads an instance of User |
|
Inner |
innerError()
Get the inner |
| Boolean |
isRetryable()
Get the is |
| Boolean |
isUserError()
Get the is |
| String |
message()
Get the message property: The message property. |
| Map<String,String> |
properties()
Get the properties property: Any key value pairs that can be injected inside error object. |
| List<String> |
recommendedAction()
Get the recommended |
| String |
target()
Get the target property: Target of the error. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
code
public String code()
Get the code property: Unique code for this error.
Returns:
details
public List<UserFacingError> details()
Get the details property: Additional related Errors.
Returns:
fromJson
public static UserFacingError fromJson(JsonReader jsonReader)
Reads an instance of UserFacingError from the JsonReader.
Parameters:
Returns:
Throws:
innerError
public InnerError innerError()
Get the innerError property: Inner Error.
Returns:
isRetryable
public Boolean isRetryable()
Get the isRetryable property: Whether the operation will be retryable or not.
Returns:
isUserError
public Boolean isUserError()
Get the isUserError property: Whether the operation is due to a user error or service error.
Returns:
message
public String message()
Get the message property: The message property.
Returns:
properties
public Map<String,String> properties()
Get the properties property: Any key value pairs that can be injected inside error object.
Returns:
recommendedAction
public List<String> recommendedAction()
Get the recommendedAction property: RecommendedAction � localized.
Returns:
target
public String target()
Get the target property: Target of the error.
Returns: