Table of Contents

Class NotificationClientException

Namespace
Quilt4Net.Toolkit.Features.Notification
Assembly
Quilt4Net.Toolkit.dll

Thrown when the Quilt4Net server refuses or fails a notification call.

public class NotificationClientException : Exception, ISerializable
Inheritance
NotificationClientException
Implements
Inherited Members
Extension Methods

Remarks

The client throws rather than dropping the notification quietly: a notification is usually sent because something is wrong, and a sender that believes it raised an alarm when it did not is the worst outcome. The caller decides whether to retry, log or carry on.

Constructors

NotificationClientException(string, int)

Creates the exception.

public NotificationClientException(string message, int statusCode)

Parameters

message string

What the server said.

statusCode int

The HTTP status code returned.

Properties

StatusCode

The HTTP status code the server returned.

public int StatusCode { get; }

Property Value

int