public final class SearchErrorException extends HttpResponseException
Constructor and Description |
---|
SearchErrorException(String message,
HttpResponse response)
Initializes a new instance of the SearchErrorException class.
|
SearchErrorException(String message,
HttpResponse response,
SearchError value)
Initializes a new instance of the SearchErrorException class.
|
Modifier and Type | Method and Description |
---|---|
SearchError |
getValue()
Gets the deserialized HTTP response value.
|
getResponse
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public SearchErrorException(String message, HttpResponse response)
message
- the exception message or the response content if a message is not available.response
- the HTTP response.public SearchErrorException(String message, HttpResponse response, SearchError value)
message
- the exception message or the response content if a message is not available.response
- the HTTP response.value
- the deserialized response value.public SearchError getValue()
HttpResponseException
getValue
in class HttpResponseException
Copyright © 2020 Microsoft Corporation. All rights reserved.