/// <summary> /// Initializes a new instance of the <see cref="ReactiveETLException"/> class. /// </summary> /// <param name="result">The operation result.</param> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"/> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info"/> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"/> is zero (0). </exception> protected EtlResultException( EtlResult result, SerializationInfo info, StreamingContext context) : base(info, context) { EtlResult = result; }
/// <summary> /// Throw exception from result /// </summary> /// <param name="result"></param> public static void From(EtlResult result) { if (result.CountExceptions > 0) { if (result.CountExceptions == 1) { throw new EtlResultException(result, "Unexpected operation exception", result.Exceptions.First()); } else { throw new EtlResultException(result); } } }
/// <summary> /// Initializes a new instance of the <see cref="ReactiveETLException"/> class. /// </summary> /// <param name="result">The operation result.</param> public EtlResultException(EtlResult result) : base() =>
/// <summary> /// Constructor of start operation /// </summary> public StartOperation() { Result = new EtlResult(); }
/// <summary> /// Constructor of start operation /// </summary> public StartOperation() { Result = new EtlResult(); }
/// <summary> /// Initializes a new instance of the <see cref="ReactiveETLException"/> class. /// </summary> /// <param name="result">The operation result.</param> /// <param name="message">The message.</param> /// <param name="inner">The inner.</param> public EtlResultException(EtlResult result, string message, Exception inner) : base(message, inner) { EtlResult = result; }
/// <summary> /// Initializes a new instance of the <see cref="ReactiveETLException"/> class. /// </summary> /// <param name="result">The operation result.</param> public EtlResultException(EtlResult result) : base() { EtlResult = result; }