ErrorContract Class
- java.
lang. Object - com.
azure. analytics. synapse. artifacts. models. ErrorContract
- com.
Implements
public final class ErrorContract
implements JsonSerializable<ErrorContract>
Error details. Contains details when the response code indicates an error.
Constructor Summary
| Constructor | Description |
|---|---|
| ErrorContract() |
Creates an instance of Error |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Error |
fromJson(JsonReader jsonReader)
Reads an instance of Error |
|
Error |
getError()
Get the error property: The error details. |
|
Error |
setError(ErrorResponse error)
Set the error property: The error details. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ErrorContract
public ErrorContract()
Creates an instance of ErrorContract class.
Method Details
fromJson
public static ErrorContract fromJson(JsonReader jsonReader)
Reads an instance of ErrorContract from the JsonReader.
Parameters:
Returns:
Throws:
getError
public ErrorResponse getError()
Get the error property: The error details.
Returns:
setError
public ErrorContract setError(ErrorResponse error)
Set the error property: The error details.
Parameters:
Returns: