Table of Contents

Class PhotonException

Namespace
Phoesion.Glow.SDK
Assembly
Phoesion.Glow.SDK.Abstractions.dll
[Serializable]
[JsonConverter(typeof(PhotonExceptionJsonConverter))]
public class PhotonException : Exception, ISerializable, IPhotonException
Inheritance
object
PhotonException
Implements
Derived
Inherited Members
Extension Methods

Constructors

PhotonException()

public PhotonException()

PhotonException(HttpStatusCode)

public PhotonException(HttpStatusCode StatusCode)

Parameters

StatusCode HttpStatusCode

PhotonException(HttpStatusCode, Exception)

public PhotonException(HttpStatusCode StatusCode, Exception InnerException)

Parameters

StatusCode HttpStatusCode
InnerException Exception

PhotonException(HttpStatusCode, string)

public PhotonException(HttpStatusCode StatusCode, string ErrorMessage)

Parameters

StatusCode HttpStatusCode
ErrorMessage string

PhotonException(HttpStatusCode, string, Exception)

public PhotonException(HttpStatusCode StatusCode, string ErrorMessage, Exception InnerException)

Parameters

StatusCode HttpStatusCode
ErrorMessage string
InnerException Exception

PhotonException(HttpStatusCode, string, object)

public PhotonException(HttpStatusCode StatusCode, string ErrorMessage, object ErrorData)

Parameters

StatusCode HttpStatusCode
ErrorMessage string
ErrorData object

PhotonException(HttpStatusCode, string, object, Exception)

public PhotonException(HttpStatusCode StatusCode, string ErrorMessage, object ErrorData, Exception InnerException)

Parameters

StatusCode HttpStatusCode
ErrorMessage string
ErrorData object
InnerException Exception

Properties

BadGateway

public static PhotonException BadGateway { get; }

Property Value

PhotonException

BadRequest

public static PhotonException BadRequest { get; }

Property Value

PhotonException

BandwidthLimitExceeded

public static PhotonException BandwidthLimitExceeded { get; }

Property Value

PhotonException

ClientClosedRequest

public static PhotonException ClientClosedRequest { get; }

Property Value

PhotonException

Conflict

public static PhotonException Conflict { get; }

Property Value

PhotonException

ContentType

public string? ContentType { get; set; }

Property Value

string

Data

Gets a collection of key/value pairs that provide additional user-defined information about the exception.

public override IDictionary Data { get; }

Property Value

IDictionary

An object that implements the IDictionary interface and contains a collection of user-defined key/value pairs. The default is an empty collection.

EnhanceYourCalm

public static PhotonException EnhanceYourCalm { get; }

Property Value

PhotonException

ExceptionData

public object? ExceptionData { get; set; }

Property Value

object

ExpectationFailed

public static PhotonException ExpectationFailed { get; }

Property Value

PhotonException

FailedDependency

public static PhotonException FailedDependency { get; }

Property Value

PhotonException

Forbidden

public static PhotonException Forbidden { get; }

Property Value

PhotonException

GatewayTimeout

public static PhotonException GatewayTimeout { get; }

Property Value

PhotonException

Gone

public static PhotonException Gone { get; }

Property Value

PhotonException

HttpVersionNotSupported

public static PhotonException HttpVersionNotSupported { get; }

Property Value

PhotonException

InsufficientStorage

public static PhotonException InsufficientStorage { get; }

Property Value

PhotonException

InternalServerError

public static PhotonException InternalServerError { get; }

Property Value

PhotonException

LengthRequired

public static PhotonException LengthRequired { get; }

Property Value

PhotonException

Locked

public static PhotonException Locked { get; }

Property Value

PhotonException

Message

Gets a message that describes the current exception.

public override string Message { get; }

Property Value

string

The error message that explains the reason for the exception, or an empty string ("").

MethodNotAllowed

public static PhotonException MethodNotAllowed { get; }

Property Value

PhotonException

NoContent

public static PhotonException NoContent { get; }

Property Value

PhotonException

NonAuthoritativeInformation

public static PhotonException NonAuthoritativeInformation { get; }

Property Value

PhotonException

NotAcceptable

public static PhotonException NotAcceptable { get; }

Property Value

PhotonException

NotExtended

public static PhotonException NotExtended { get; }

Property Value

PhotonException

NotFound

public static PhotonException NotFound { get; }

Property Value

PhotonException

NotImplemented

public static PhotonException NotImplemented { get; }

Property Value

PhotonException

PartialContent

public static PhotonException PartialContent { get; }

Property Value

PhotonException

PaymentRequired

public static PhotonException PaymentRequired { get; }

Property Value

PhotonException

PreconditionFailed

public static PhotonException PreconditionFailed { get; }

Property Value

PhotonException

RemoteException

public static PhotonException RemoteException { get; }

Property Value

PhotonException

RequestEntityTooLarge

public static PhotonException RequestEntityTooLarge { get; }

Property Value

PhotonException

RequestTimeout

public static PhotonException RequestTimeout { get; }

Property Value

PhotonException

RequestUriTooLong

public static PhotonException RequestUriTooLong { get; }

Property Value

PhotonException

RequestedRangeNotSatisfiable

public static PhotonException RequestedRangeNotSatisfiable { get; }

Property Value

PhotonException

ResetContent

public static PhotonException ResetContent { get; }

Property Value

PhotonException

ServiceUnavailable

public static PhotonException ServiceUnavailable { get; }

Property Value

PhotonException

StatusCode

public HttpStatusCode StatusCode { get; set; }

Property Value

HttpStatusCode

TooManyRequests

public static PhotonException TooManyRequests { get; }

Property Value

PhotonException

Unauthorized

public static PhotonException Unauthorized { get; }

Property Value

PhotonException

UnavailableForLegalReasons

public static PhotonException UnavailableForLegalReasons { get; }

Property Value

PhotonException

UnorderedCollection

public static PhotonException UnorderedCollection { get; }

Property Value

PhotonException

UnprocessableEntity

public static PhotonException UnprocessableEntity { get; }

Property Value

PhotonException

UnsupportedMediaType

public static PhotonException UnsupportedMediaType { get; }

Property Value

PhotonException

UpgradeRequired

public static PhotonException UpgradeRequired { get; }

Property Value

PhotonException

Methods

CustomError(string)

public static PhotonException CustomError(string Message)

Parameters

Message string

Returns

PhotonException

FromException(Exception?)

public static PhotonException? FromException(Exception? ex)

Parameters

ex Exception

Returns

PhotonException

WithContentType(string)

public PhotonException WithContentType(string ContentType)

Parameters

ContentType string

Returns

PhotonException

WithData(object?)

public PhotonException WithData(object? Data)

Parameters

Data object

Returns

PhotonException

WithMessage(string?)

public PhotonException WithMessage(string? Message)

Parameters

Message string

Returns

PhotonException

WithStatusCode(HttpStatusCode)

public PhotonException WithStatusCode(HttpStatusCode StatusCode)

Parameters

StatusCode HttpStatusCode

Returns

PhotonException