Package de.dvdv2.manager
Class DVDVHttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.dvdv2.DVDVException
de.dvdv2.manager.DVDVIOException
de.dvdv2.manager.DVDVHttpException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DVDVAuthenticationException
Wird geworfen, wenn ein Aufruf gelingt, aber der Server einen HTTP-Response-Code liefert, der einen Fehler anzeigt.
Entspricht in etwa der DVDV1-Klasse
Entspricht in etwa der DVDV1-Klasse
de.dvdv.http.DVDVHttpException.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDVDVHttpException(int code, URL url, boolean detectedExceptionInfoContainer, String message) DVDVHttpException(int code, URL url, Rfc7807Problem rfc7807Problem) -
Method Summary
Modifier and TypeMethodDescriptionfinal intgetCode()HTTP response codefinal Rfc7807Problemnull oder Inhalt der Error-Response gemäß RFC7807final booleanMethods inherited from class de.dvdv2.manager.DVDVIOException
getUrlMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DVDVHttpException
- Parameters:
code- HTTP-Response Code, etwa 404 oder 500.
-
DVDVHttpException
-
-
Method Details
-
getRfc7807Problem
null oder Inhalt der Error-Response gemäß RFC7807- Returns:
- null oder Inhat der Error-Response gemäß RFC7807
-
getCode
public final int getCode()HTTP response code- Returns:
- HTTP response code.
-
isBackendErrorResponse
public final boolean isBackendErrorResponse()- Returns:
- true, falls die ErrorResponse als vom Kernsystem kommend erkannt wurde.
-