Zum Hauptinhalt springen

FilesApiException

Namespace: Meshmakers.Octo.Sdk.ServiceClient.AssetRepositoryServices.Files

A file API call failed. Carries the stable FilesApiException.Code (see FileErrorCodes) and the HTTP status. For GraphQL errors (which travel with HTTP 200) the status is derived from the code, so callers can treat REST and GraphQL failures alike.

public class FilesApiException : ServiceClientResultException, ISerializable

Inheritance Object → Exception → ServiceClientResultException → FilesApiException
Implements ISerializable

Properties​

Code​

Stable error code (see FileErrorCodes).

public string Code { get; }

Property Value​

String

Detail​

Human readable detail of the server.

public string Detail { get; }

Property Value​

String

IsGraphQlError​

True when the error came from the GraphQL endpoint (metadata operations).

public bool IsGraphQlError { get; }

Property Value​

Boolean

HttpStatusCode​

Returns the status code

public HttpStatusCode HttpStatusCode { get; }

Property Value​

HttpStatusCode

TargetSite​

public MethodBase TargetSite { get; }

Property Value​

MethodBase

Message​

public string Message { get; }

Property Value​

String

Data​

public IDictionary Data { get; }

Property Value​

IDictionary

InnerException​

public Exception InnerException { get; }

Property Value​

Exception

public string HelpLink { get; set; }

Property Value​

String

Source​

public string Source { get; set; }

Property Value​

String

HResult​

public int HResult { get; set; }

Property Value​

Int32

StackTrace​

public string StackTrace { get; }

Property Value​

String

Constructors​

FilesApiException(String, HttpStatusCode, String, Boolean, Exception)​

Constructor.

public FilesApiException(string code, HttpStatusCode httpStatusCode, string detail, bool isGraphQlError, Exception inner)

Parameters​

code String
Stable error code

httpStatusCode HttpStatusCode
HTTP status (or the status derived from the code)

detail String
Human readable detail

isGraphQlError Boolean
True when the error came from the GraphQL endpoint

inner Exception
Inner exception