/// <summary> /// Constructor. /// </summary> /// <param name="code">Error code.</param> /// <param name="reason">Error reason.</param> /// <param name="requiredAction">Action for which it was not possible to derive the facts.</param> /// <param name="container"></param> /// <param name="requiredFacts">The facts that tried to derive.</param> public DeriveErrorDetail(string code, string reason, IWantAction requiredAction, IFactContainer container, IReadOnlyCollection <DeriveFactErrorDetail> requiredFacts) : base(code, reason) { RequiredAction = requiredAction; RequiredFacts = requiredFacts; Container = container; }
/// <summary> /// Creates <see cref="InvalidDeriveOperationException"/>. /// </summary> /// <param name="code">Error code.</param> /// <param name="reason">Error reason.</param> /// <param name="requiredAction">Action for which it was not possible to derive the facts.</param> /// <param name="container">Fact container.</param> /// <param name="requiredFacts">The facts that tried to derive.</param> /// <returns>Exception.</returns> public static InvalidDeriveOperationException CreateDeriveException(string code, string reason, IWantAction requiredAction, IFactContainer container, IReadOnlyCollection <DeriveFactErrorDetail> requiredFacts) { return(new InvalidDeriveOperationException(new List <DeriveErrorDetail> { new DeriveErrorDetail(code, reason, requiredAction, container, requiredFacts), }.AsReadOnly())); }
/// <summary> /// Creates <see cref="InvalidDeriveOperationException"/>. /// </summary> /// <param name="code">Error code.</param> /// <param name="reason">Error reason.</param> /// <param name="requiredAction">Action for which it was not possible to derive the facts.</param> /// <param name="container">Fact container.</param> /// <returns>Exception.</returns> public static InvalidDeriveOperationException CreateDeriveException(string code, string reason, IWantAction requiredAction, IFactContainer container) { return(CreateDeriveException(code, reason, requiredAction, container, null)); }
public bool IsFactContained(IFactContainer container) { throw new NotImplementedException(); }