namespace ZB.MOM.WW.MxGateway.Server.Workers; /// /// Exception raised when communication with a worker process fails. /// public sealed class WorkerClientException : Exception { /// /// Initializes with an error code and message. /// /// Worker client error code classifying the failure. /// Diagnostic message. public WorkerClientException( WorkerClientErrorCode errorCode, string message) : base(message) { ErrorCode = errorCode; } /// /// Initializes with an error code, message, and inner exception. /// /// Worker client error code classifying the failure. /// Diagnostic message. /// Underlying exception. public WorkerClientException( WorkerClientErrorCode errorCode, string message, Exception innerException) : base(message, innerException) { ErrorCode = errorCode; } /// /// The worker client error code classifying the failure. /// public WorkerClientErrorCode ErrorCode { get; } }