public Hl7Error(Hl7ErrorCode hl7ErrorCode, ErrorLevel hl7ErrorLevel, string message, XmlNode node) { this.hl7ErrorCode = hl7ErrorCode; this.hl7ErrorLevel = hl7ErrorLevel; this.message = message; this.path = XmlDescriber.DescribePath(node); }
public Hl7Error(Hl7ErrorCode hl7ErrorCode, ErrorLevel hl7ErrorLevel, string message, string beanPath) { // must be set explicitly - later - when passing in an xpath this.hl7ErrorCode = hl7ErrorCode; this.hl7ErrorLevel = hl7ErrorLevel; this.message = message; this.path = null; this.beanPath = beanPath; }
public static ErrorCode TransformCode(Hl7ErrorCode hl7ErrorCode) { if (hl7ErrorCode == null) { return(null); } IList <ErrorCode> values = EnumPattern.Values <ErrorCode>(); string name = hl7ErrorCode.Name; for (int i = 0; i < values.Count; i++) { if (StringUtils.Equals(values[i].Name, name)) { return(values[i]); } } return(null); }
public Hl7Error(Hl7ErrorCode hl7ErrorCode, string message, XmlNode node) : this(hl7ErrorCode, ErrorLevel.ERROR, message, node) { }
public Hl7Error(Hl7ErrorCode hl7ErrorCode, ErrorLevel hl7ErrorLevel, string message, XmlAttribute attr) : this(hl7ErrorCode , hl7ErrorLevel, message, (XmlNode)attr) { }
public Hl7Error(Hl7ErrorCode hl7ErrorCode, ErrorLevel hl7ErrorLevel, string message, XmlElement element) : this(hl7ErrorCode , hl7ErrorLevel, message, (XmlNode)element) { }
public Hl7Error(Hl7ErrorCode hl7ErrorCode, string message, string beanPath) : this(hl7ErrorCode, ErrorLevel.ERROR, message , beanPath) { }