Class DVDVHttpException
Wird geworfen, wenn ein Aufruf gelingt, aber der Server einen HTTP-Response-Code liefert, der einen Fehler anzeigt. Entspricht in etwa der DVDV1-Klasse DVDVHttpException.
Inheritance
Implements
Inherited Members
Namespace: Dvdv.Api.Exception
Assembly: Dvdv.dll
Syntax
[Serializable]
[ExcludeFromCodeCoverage]
public class DVDVHttpException : DVDVIOException, ISerializable
Constructors
| Edit this page View SourceDVDVHttpException(HttpStatusCode, Uri, Rfc7807Problem)
Initializes a new instance of the DVDVHttpException class.
Declaration
public DVDVHttpException(HttpStatusCode statusCode, Uri responseUrl, Rfc7807Problem rfc7807Problem)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpStatusCode | statusCode | StatusCode der HTTP-Response, siehe https://developer.mozilla.org/de/docs/Web/HTTP/Status |
| Uri | responseUrl | URL, bei deren Aufruf der Fehler aufgetreten ist |
| Rfc7807Problem | rfc7807Problem | The RFC7807 problem. |
DVDVHttpException(HttpStatusCode, Uri, bool, string)
Initialisiert eine neue Instanz der Exception
Declaration
public DVDVHttpException(HttpStatusCode statusCode, Uri responseUrl, bool detectedExceptionInfoContainer, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpStatusCode | statusCode | StatusCode der HTTP-Response, siehe https://developer.mozilla.org/de/docs/Web/HTTP/Status |
| Uri | responseUrl | URL, bei deren Aufruf der Fehler aufgetreten ist |
| bool | detectedExceptionInfoContainer | JSON-Error-Response im proprietären Kernsystem-Format erkannt |
| string | message | Die Fehlernachricht |
DVDVHttpException(HttpStatusCode, Uri, SerializationInfo, StreamingContext)
Initialisiert eine neue Instanz der Exception
Declaration
public DVDVHttpException(HttpStatusCode statusCode, Uri responseUrl, SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpStatusCode | statusCode | StatusCode der HTTP-Response, siehe https://developer.mozilla.org/de/docs/Web/HTTP/Status |
| Uri | responseUrl | URL, bei deren Aufruf der Fehler aufgetreten ist |
| SerializationInfo | info | Die SerializationInfo |
| StreamingContext | context | Der StreamingContext |
DVDVHttpException(HttpStatusCode, Uri, string, Exception)
Initialisiert eine neue Instanz der Exception
Declaration
public DVDVHttpException(HttpStatusCode statusCode, Uri responseUrl, string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpStatusCode | statusCode | StatusCode der HTTP-Response, siehe https://developer.mozilla.org/de/docs/Web/HTTP/Status |
| Uri | responseUrl | URL, bei deren Aufruf der Fehler aufgetreten ist |
| string | message | Die Fehlernachricht |
| Exception | innerException | Die ursprüngliche Exception |
Properties
| Edit this page View SourceRfc7807Problem
Problem-Informationen gemäß RFC7807. Kann null sein, falls der DVDV-Server keine entsprechende Response geschickt hat. Das ist jedendfalls der Fall für DVDV-Server bis inkl. 1.1.3.
Declaration
public Rfc7807Problem Rfc7807Problem { get; }
Property Value
| Type | Description |
|---|---|
| Rfc7807Problem | Problem-Informationen gemäß RFC7807. |
StatusCode
Gibt den StatusCode der HTTP-Response
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
| Type | Description |
|---|---|
| HttpStatusCode |
Methods
| Edit this page View SourceisBackendErrorResponse()
Erlaubt die Unterscheidung zwischen Error-Responses, die aus dem Kernsystem (im Unterschied zur Server-Infrastruktur) kommen.
Declaration
public bool isBackendErrorResponse()
Returns
| Type | Description |
|---|---|
| bool |
|