Freigeben über


APIErrorException Klasse

  • java.lang.Object
    • RestException
      • com.microsoft.azure.cognitiveservices.language.luis.runtime.models.APIErrorException

public class APIErrorException

Ausnahme, die für eine ungültige Antwort mit APIError-Informationen ausgelöst wird.

Zusammenfassung zum Konstruktor

Konstruktor Beschreibung
APIErrorException(final String message, final Response<ResponseBody> response)

Initialisiert eine neue instance der APIErrorException-Klasse.

APIErrorException(final String message, final Response<ResponseBody> response, final APIError body)

Initialisiert eine neue instance der APIErrorException-Klasse.

Methodenzusammenfassung

Modifizierer und Typ Methode und Beschreibung
APIError body()

Details zum Konstruktor

APIErrorException

public APIErrorException(final String message, final Response response)

Initialisiert eine neue instance der APIErrorException-Klasse.

Parameters:

message - Die Ausnahmemeldung oder der Antwortinhalt, wenn eine Nachricht nicht verfügbar ist
response - die HTTP-Antwort

APIErrorException

public APIErrorException(final String message, final Response response, final APIError body)

Initialisiert eine neue instance der APIErrorException-Klasse.

Parameters:

message - Die Ausnahmemeldung oder der Antwortinhalt, wenn eine Nachricht nicht verfügbar ist
response - die HTTP-Antwort
body - der deserialisierte Antworttext

Details zur Methode

body

public APIError body()

Gilt für: