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
Detail
Human readable detail of the server.
public string Detail { get; }
Property Value
IsGraphQlError
True when the error came from the GraphQL endpoint (metadata operations).
public bool IsGraphQlError { get; }
Property Value
HttpStatusCode
Returns the status code
public HttpStatusCode HttpStatusCode { get; }
Property Value
HttpStatusCode
TargetSite
public MethodBase TargetSite { get; }
Property Value
Message
public string Message { get; }
Property Value
Data
public IDictionary Data { get; }
Property Value
InnerException
public Exception InnerException { get; }
Property Value
HelpLink
public string HelpLink { get; set; }
Property Value
Source
public string Source { get; set; }
Property Value
HResult
public int HResult { get; set; }
Property Value
StackTrace
public string StackTrace { get; }
Property Value
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