CkUpgradeBlockedException
Namespace: Meshmakers.Octo.Sdk.ServiceClient.AssetRepositoryServices.CkModelCatalog
The asset repository refused an import because the update set would break an installed model (tenant upgrade
guard, CK v2 F2.5): HTTP 409 with the stable code CkUpgradeBlockedException.ErrorCode. Nothing was imported.
CkUpgradeBlockedException.Blockers is language-neutral (dependent, update, kind, subject, code, resolve hint); repeat the
request with ForceBreakingUpdate = true to override deliberately.
public class CkUpgradeBlockedException : ServiceClientResultException, ISerializable
Inheritance Object → Exception → ServiceClientResultException → CkUpgradeBlockedException
Implements ISerializable
Fields
ErrorCode
The stable error code of the refusal.
public static string ErrorCode;
Properties
Detail
English explanation of the server (names the dependents and how to proceed).
public string Detail { get; }
Property Value
UpdateSet
The requested update set (full model ids).
public IReadOnlyList<string> UpdateSet { get; }
Property Value
Blockers
The installed models the update set would break, one entry per model and pin.
public IReadOnlyList<CkUpgradeBlockerDto> Blockers { get; }
Property Value
IReadOnlyList<CkUpgradeBlockerDto>
HttpStatusCode
Returns the status code
public HttpStatusCode HttpStatusCode { get; }
Property Value
HttpStatusCode
ResponseContent
The response body of the failed call, when the service sent one (e.g. an RFC 9457
application/problem+json body). Read it with ServiceProblem.TryParse(ServiceClientResultException, out ServiceProblem).
public string ResponseContent { get; set; }
Property Value
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
CkUpgradeBlockedException(String, IReadOnlyList<String>, IReadOnlyList<CkUpgradeBlockerDto>)
Constructor
public CkUpgradeBlockedException(string detail, IReadOnlyList<string> updateSet, IReadOnlyList<CkUpgradeBlockerDto> blockers)
Parameters
detail String
English explanation of the server
updateSet IReadOnlyList<String>
The requested update set (full model ids)
blockers IReadOnlyList<CkUpgradeBlockerDto>
The installed models the update set would break
Methods
TryParse(HttpStatusCode, String)
Reads the problem details of a 409 answer. Returns null when the body is not the
CkUpgradeBlockedException.ErrorCode problem (another 409, or no JSON), so the caller falls back to the generic error.
internal static CkUpgradeBlockedException TryParse(HttpStatusCode statusCode, string content)
Parameters
statusCode HttpStatusCode
content String