Class ErrorResponse
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.ErrorResponse
-
public class ErrorResponse extends Object
Error response. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
-
-
Constructor Summary
Constructors Constructor Description ErrorResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorResponseError
error()
Get the error value.ErrorResponse
withError(ErrorResponseError error)
Set the error value.
-
-
-
Method Detail
-
error
public ErrorResponseError error()
Get the error value.- Returns:
- the error value
-
withError
public ErrorResponse withError(ErrorResponseError error)
Set the error value.- Parameters:
error
- the error value to set- Returns:
- the ErrorResponse object itself.
-
-