Class PhotonException
[Serializable]
[JsonConverter(typeof(PhotonExceptionJsonConverter))]
public class PhotonException : Exception, ISerializable, IPhotonException
- Inheritance
-
objectPhotonException
- 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
HttpStatusCodeInnerException
Exception
PhotonException(HttpStatusCode, string)
public PhotonException(HttpStatusCode StatusCode, string ErrorMessage)
Parameters
StatusCode
HttpStatusCodeErrorMessage
string
PhotonException(HttpStatusCode, string, Exception)
public PhotonException(HttpStatusCode StatusCode, string ErrorMessage, Exception InnerException)
Parameters
StatusCode
HttpStatusCodeErrorMessage
stringInnerException
Exception
PhotonException(HttpStatusCode, string, object)
public PhotonException(HttpStatusCode StatusCode, string ErrorMessage, object ErrorData)
Parameters
StatusCode
HttpStatusCodeErrorMessage
stringErrorData
object
PhotonException(HttpStatusCode, string, object, Exception)
public PhotonException(HttpStatusCode StatusCode, string ErrorMessage, object ErrorData, Exception InnerException)
Parameters
StatusCode
HttpStatusCodeErrorMessage
stringErrorData
objectInnerException
Exception
Properties
BadGateway
public static PhotonException BadGateway { get; }
Property Value
BadRequest
public static PhotonException BadRequest { get; }
Property Value
BandwidthLimitExceeded
public static PhotonException BandwidthLimitExceeded { get; }
Property Value
ClientClosedRequest
public static PhotonException ClientClosedRequest { get; }
Property Value
Conflict
public static PhotonException Conflict { get; }
Property Value
ContentType
public string? ContentType { get; set; }
Property Value
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
ExceptionData
public object? ExceptionData { get; set; }
Property Value
- object
ExpectationFailed
public static PhotonException ExpectationFailed { get; }
Property Value
FailedDependency
public static PhotonException FailedDependency { get; }
Property Value
Forbidden
public static PhotonException Forbidden { get; }
Property Value
GatewayTimeout
public static PhotonException GatewayTimeout { get; }
Property Value
Gone
public static PhotonException Gone { get; }
Property Value
HttpVersionNotSupported
public static PhotonException HttpVersionNotSupported { get; }
Property Value
InsufficientStorage
public static PhotonException InsufficientStorage { get; }
Property Value
InternalServerError
public static PhotonException InternalServerError { get; }
Property Value
LengthRequired
public static PhotonException LengthRequired { get; }
Property Value
Locked
public static PhotonException Locked { get; }
Property Value
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
NoContent
public static PhotonException NoContent { get; }
Property Value
NonAuthoritativeInformation
public static PhotonException NonAuthoritativeInformation { get; }
Property Value
NotAcceptable
public static PhotonException NotAcceptable { get; }
Property Value
NotExtended
public static PhotonException NotExtended { get; }
Property Value
NotFound
public static PhotonException NotFound { get; }
Property Value
NotImplemented
public static PhotonException NotImplemented { get; }
Property Value
PartialContent
public static PhotonException PartialContent { get; }
Property Value
PaymentRequired
public static PhotonException PaymentRequired { get; }
Property Value
PreconditionFailed
public static PhotonException PreconditionFailed { get; }
Property Value
RemoteException
public static PhotonException RemoteException { get; }
Property Value
RequestEntityTooLarge
public static PhotonException RequestEntityTooLarge { get; }
Property Value
RequestTimeout
public static PhotonException RequestTimeout { get; }
Property Value
RequestUriTooLong
public static PhotonException RequestUriTooLong { get; }
Property Value
RequestedRangeNotSatisfiable
public static PhotonException RequestedRangeNotSatisfiable { get; }
Property Value
ResetContent
public static PhotonException ResetContent { get; }
Property Value
ServiceUnavailable
public static PhotonException ServiceUnavailable { get; }
Property Value
StatusCode
public HttpStatusCode StatusCode { get; set; }
Property Value
TooManyRequests
public static PhotonException TooManyRequests { get; }
Property Value
Unauthorized
public static PhotonException Unauthorized { get; }
Property Value
UnavailableForLegalReasons
public static PhotonException UnavailableForLegalReasons { get; }
Property Value
UnorderedCollection
public static PhotonException UnorderedCollection { get; }
Property Value
UnprocessableEntity
public static PhotonException UnprocessableEntity { get; }
Property Value
UnsupportedMediaType
public static PhotonException UnsupportedMediaType { get; }
Property Value
UpgradeRequired
public static PhotonException UpgradeRequired { get; }
Property Value
Methods
CustomError(string)
public static PhotonException CustomError(string Message)
Parameters
Message
string
Returns
FromException(Exception?)
public static PhotonException? FromException(Exception? ex)
Parameters
ex
Exception
Returns
WithContentType(string)
public PhotonException WithContentType(string ContentType)
Parameters
ContentType
string
Returns
WithData(object?)
public PhotonException WithData(object? Data)
Parameters
Data
object
Returns
WithMessage(string?)
public PhotonException WithMessage(string? Message)
Parameters
Message
string
Returns
WithStatusCode(HttpStatusCode)
public PhotonException WithStatusCode(HttpStatusCode StatusCode)
Parameters
StatusCode
HttpStatusCode