Class TusException
Represents an exception that might occur when using TusClient. See https://github.com/jonstodle/TusDotNetClient.
Inherited Members
Namespace: Unity.Services.Ccd.Management
Assembly: Unity.Services.Ccd.Management.dll
Syntax
public class TusException : WebException, _Exception, ISerializable
Constructors
TusException(WebException, string)
Create a new instance of TusException based on a WebException.
Declaration
public TusException(WebException ex, string message = "")
Parameters
Type | Name | Description |
---|---|---|
WebException | ex | The WebException to base the new TusException on. |
string | message | Text to prefix the Message with. |
TusException(OperationCanceledException)
Create a new instance of TusException based on an OperationCanceledException.
Declaration
public TusException(OperationCanceledException ex)
Parameters
Type | Name | Description |
---|---|---|
OperationCanceledException | ex | An OperationCanceledException to base the TusException on. |
TusException(TusException, string)
Create a new instance of TusException based on another TusException.
Declaration
public TusException(TusException ex, string message)
Parameters
Type | Name | Description |
---|---|---|
TusException | ex | The TusException to base the new TusException on. |
string | message | Text to prefix the Message with. |
Properties
OriginalException
Get the original WebException that occured.
Declaration
public WebException OriginalException { get; }
Property Value
Type | Description |
---|---|
WebException |
ResponseContent
Get the content, if any, of the failed operation.
Declaration
public string ResponseContent { get; }
Property Value
Type | Description |
---|---|
string |
StatusCode
Get the HTTP status code, if any, of the failed operation.
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Type | Description |
---|---|
HttpStatusCode |
StatusDescription
Get the description of the HTTP status code.
Declaration
public string StatusDescription { get; }
Property Value
Type | Description |
---|---|
string |
Methods
ToString()
Get a string containing all relevant information about the TusException.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string containing information about the exception. |