ErrorResponseException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - java.
lang. RuntimeException - com.
microsoft. rest. RestException - com.
microsoft. azure. cognitiveservices. search. visualsearch. models. ErrorResponseException
- com.
- com.
- java.
- java.
- java.
public class ErrorResponseException
extends com.microsoft.rest.RestException
Exception thrown for an invalid response with ErrorResponse information.
Constructor Summary
Constructor | Description |
---|---|
ErrorResponseException(String message, Response<ResponseBody> response) |
Initializes a new instance of the Error |
ErrorResponseException(String message, Response<ResponseBody> response, ErrorResponse body) |
Initializes a new instance of the Error |
Method Summary
Modifier and Type | Method and Description |
---|---|
Error |
body() |
Methods inherited from com.microsoft.rest.RestException
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
ErrorResponseException
public ErrorResponseException(String message, Response
Initializes a new instance of the ErrorResponseException class.
Parameters:
ErrorResponseException
public ErrorResponseException(String message, Response
Initializes a new instance of the ErrorResponseException class.
Parameters:
Method Details
body
public ErrorResponse body()
Overrides:
ErrorResponseException.body()Applies to
Azure SDK for Java
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour