Skip to main content

CkPublishRefusedException

Namespace: Meshmakers.Octo.ConstructionKit.Contracts

The publish gate refused a model (AB#6386, AB#6389): nothing was written to the catalog. It is a verdict about the model, like ValidateVersion, ValidateCascade and ValidateCatalog, so it ends the process with the same code (-6, ModelValidationException). The reasons (ordered, deduplicated, one self-contained line each, see CkPublishRefusal) are in CkPublishRefusedException.OperationResult; the exception text is the one-line summary.

public sealed class CkPublishRefusedException : ModelValidationException, ISerializable

Inheritance Object → Exception → CkModelException → ModelValidationException → CkPublishRefusedException
Implements ISerializable

Properties​

OperationResult​

The result that carries one error message per reason.

public OperationResult OperationResult { get; }

Property Value​

OperationResult

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​

CkPublishRefusedException(String, OperationResult)​

Creates a new instance of the CkPublishRefusedException class.

public CkPublishRefusedException(string message, OperationResult operationResult)

Parameters​

message String
The one-line summary (model, catalog, gate, codes).

operationResult OperationResult
The result that carries one error message per reason.