public final class Error extends Object
Constructor and Description |
---|
Error() |
Modifier and Type | Method and Description |
---|---|
String |
getCode()
Get the code property: Server defined error code.
|
List<Error> |
getDetails()
Get the details property: An array of errors that led to the reported error.
|
InnerError |
getInnererror()
Get the innererror property: An object containing more specific information than the current object about the
error.
|
String |
getMessage()
Get the message property: A human-readable representation of the error.
|
OffsetDateTime |
getOccurredDateTime()
Get the occurredDateTime property: Date and time in UTC when the error occurred.
|
String |
getTarget()
Get the target property: The target of the error.
|
Error |
setCode(String code)
Set the code property: Server defined error code.
|
Error |
setDetails(List<Error> details)
Set the details property: An array of errors that led to the reported error.
|
Error |
setInnererror(InnerError innererror)
Set the innererror property: An object containing more specific information than the current object about the
error.
|
Error |
setMessage(String message)
Set the message property: A human-readable representation of the error.
|
Error |
setOccurredDateTime(OffsetDateTime occurredDateTime)
Set the occurredDateTime property: Date and time in UTC when the error occurred.
|
Error |
setTarget(String target)
Set the target property: The target of the error.
|
public String getCode()
public Error setCode(String code)
code
- the code value to set.public String getMessage()
public Error setMessage(String message)
message
- the message value to set.public String getTarget()
public Error setTarget(String target)
target
- the target value to set.public List<Error> getDetails()
public Error setDetails(List<Error> details)
details
- the details value to set.public InnerError getInnererror()
public Error setInnererror(InnerError innererror)
innererror
- the innererror value to set.public OffsetDateTime getOccurredDateTime()
public Error setOccurredDateTime(OffsetDateTime occurredDateTime)
occurredDateTime
- the occurredDateTime value to set.Copyright © 2021 Microsoft Corporation. All rights reserved.