ErrorResponseException Klasse

public class ErrorResponseException
extends RestException

Ausnahme ausgelöst für eine ungültige Antwort mit ErrorResponse-Informationen.

Zusammenfassung zum Konstruktor

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

Initialisiert eine neue Instanz der ErrorResponseException-Klasse.

ErrorResponseException(String message, Response<ResponseBody> response, ErrorResponse body)

Initialisiert eine neue Instanz der ErrorResponseException-Klasse.

Methodenzusammenfassung

Modifizierer und Typ Methode und Beschreibung
ErrorResponse body()

Der HTTP-Antworttext.

Geerbte Methoden von RestException

Geerbte Methoden von java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Geerbte Methoden von java.lang.Throwable

java.lang.Throwable.addSuppressed java.lang.Throwable.fillInStackTrace java.lang.Throwable.getCause java.lang.Throwable.getLocalizedMessage java.lang.Throwable.getMessage java.lang.Throwable.getStackTrace java.lang.Throwable.getSuppressed java.lang.Throwable.initCause java.lang.Throwable.printStackTrace java.lang.Throwable.printStackTrace java.lang.Throwable.printStackTrace java.lang.Throwable.setStackTrace java.lang.Throwable.toString

Details zum Konstruktor

ErrorResponseException

public ErrorResponseException(String message, Response response)

Initialisiert eine neue Instanz der ErrorResponseException-Klasse.

Parameter:

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

ErrorResponseException

public ErrorResponseException(String message, Response response, ErrorResponse body)

Initialisiert eine neue Instanz der ErrorResponseException-Klasse.

Parameter:

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

Details zur Methode

body

public ErrorResponse body()

Der HTTP-Antworttext.

Überschreibt:

ErrorResponseException.body()

Gibt zurück:

der HTTP-Antworttext

Gilt für: