Exemple #1
0
 public Hl7Error(Hl7ErrorCode hl7ErrorCode, ErrorLevel hl7ErrorLevel, string message, XmlNode node)
 {
     this.hl7ErrorCode  = hl7ErrorCode;
     this.hl7ErrorLevel = hl7ErrorLevel;
     this.message       = message;
     this.path          = XmlDescriber.DescribePath(node);
 }
Exemple #2
0
 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;
 }
Exemple #3
0
        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);
        }
Exemple #4
0
 public Hl7Error(Hl7ErrorCode hl7ErrorCode, string message, XmlNode node) : this(hl7ErrorCode, ErrorLevel.ERROR, message,
                                                                                 node)
 {
 }
Exemple #5
0
 public Hl7Error(Hl7ErrorCode hl7ErrorCode, ErrorLevel hl7ErrorLevel, string message, XmlAttribute attr) : this(hl7ErrorCode
                                                                                                                , hl7ErrorLevel, message, (XmlNode)attr)
 {
 }
Exemple #6
0
 public Hl7Error(Hl7ErrorCode hl7ErrorCode, ErrorLevel hl7ErrorLevel, string message, XmlElement element) : this(hl7ErrorCode
                                                                                                                 , hl7ErrorLevel, message, (XmlNode)element)
 {
 }
Exemple #7
0
 public Hl7Error(Hl7ErrorCode hl7ErrorCode, string message, string beanPath) : this(hl7ErrorCode, ErrorLevel.ERROR, message
                                                                                    , beanPath)
 {
 }