Show / Hide Table of Contents

Class PushServiceClientException

An exception representing requesting PushMessage delivery failure based on push service response.

Inheritance
System.Object
System.Exception
PushServiceClientException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lib.Net.Http.WebPush
Assembly: Lib.Net.Http.WebPush.dll
Syntax
public class PushServiceClientException : Exception, ISerializable

Constructors

PushServiceClientException(String, HttpStatusCode)

Creates new instance of PushServiceClientException class.

Declaration
public PushServiceClientException(string message, HttpStatusCode statusCode)
Parameters
Type Name Description
System.String message

The message that describes the current exception.

System.Net.HttpStatusCode statusCode

The status code of the push service response.

PushServiceClientException(String, HttpStatusCode, HttpResponseHeaders, String, PushSubscription)

Creates new instance of PushServiceClientException class.

Declaration
public PushServiceClientException(string message, HttpStatusCode statusCode, HttpResponseHeaders headers, string body, PushSubscription pushSubscription)
Parameters
Type Name Description
System.String message

The message that describes the current exception.

System.Net.HttpStatusCode statusCode

The status code of the push service response.

System.Net.Http.Headers.HttpResponseHeaders headers

The headers of the push service response.

System.String body

The body of the push service response.

PushSubscription pushSubscription

The PushSubscription that initiated the push service request.

Properties

Body

Gets the body of the push service response.

Declaration
public string Body { get; }
Property Value
Type Description
System.String

Headers

Gets the headers of the push service response.

Declaration
public HttpResponseHeaders Headers { get; }
Property Value
Type Description
System.Net.Http.Headers.HttpResponseHeaders

PushSubscription

Gets the PushSubscription that initiated the push service request.

Declaration
public PushSubscription PushSubscription { get; }
Property Value
Type Description
PushSubscription

StatusCode

Gets the status code of the push service response.

Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Type Description
System.Net.HttpStatusCode

Implements

System.Runtime.Serialization.ISerializable
Back to top Copyright © 2018 - 2024 Tomasz Pęczek