/// <summary> /// Creates a new detected issue with the specified field values /// </summary> /// <param name="id">The unique identifier (context specific) of the business rule violation</param> /// <param name="priority">The priority / seriousness of the detected issue being raised</param> /// <param name="text">The textual content of the detected issue</param> /// <param name="type">The codified type of the detected issue (examples: <see cref="DetectedIssueKeys"/>)</param> public DetectedIssue(DetectedIssuePriorityType priority, String id, String text, Guid type) { this.Id = id; this.Priority = priority; this.Text = text; this.TypeKey = type; }
/// <summary> /// Creates a new detected issue exception /// </summary> /// <param name="priority">The priority of the detected issue</param> /// <param name="id">The unique identifier of the issue</param> /// <param name="text">The textual information on the issue</param> /// <param name="type">The type of issue</param> /// <param name="cause">What caused this issue</param> public DetectedIssueException(DetectedIssuePriorityType priority, String id, String text, Guid type, Exception cause) : base(text, cause) { this.Issues = new List <DetectedIssue>() { new DetectedIssue(priority, id, text, type) }; }
/// <summary> /// Creates a new SyslogHeaderResultDetail /// </summary> public SyslogHeaderResultDetail(DetectedIssuePriorityType type, String message, Exception exception) : base(type, "messaging.syslog", message, DetectedIssueKeys.CodificationIssue) { }
/// <summary> /// Creates a new SyslogHeaderResultDetail /// </summary> public Rfc3881ParseResultDetail(DetectedIssuePriorityType type, String message, Exception exception) : base(type, "messaging.rfc3881", message, DetectedIssueKeys.OtherIssue) { }