Esempio n. 1
0
 public Insanity(InsanityType type, string msg, params FieldCache.CacheEntry[] entries)
 {
     // LUCENENET specific - rearranged order to take advantage of throw expressions
     this.type    = type ?? throw new ArgumentNullException(nameof(type), "Insanity requires non-null InsanityType");
     this.entries = entries ?? throw new ArgumentNullException(nameof(entries), "Insanity requires non-null CacheEntry[]");
     if (0 == entries.Length)
     {
         throw new ArgumentException("Insanity requires non-empty CacheEntry[]");
     }
     this.msg = msg;
 }
 public Insanity(InsanityType type, System.String msg, params CacheEntry[] entries)
 {
     if (null == type)
     {
         throw new System.ArgumentException("Insanity requires non-null InsanityType");
     }
     if (null == entries || 0 == entries.Length)
     {
         throw new System.ArgumentException("Insanity requires non-null/non-empty CacheEntry[]");
     }
     this.type    = type;
     this.msg     = msg;
     this.entries = entries;
 }
Esempio n. 3
0
 public Insanity(InsanityType type, string msg, params FieldCache.CacheEntry[] entries)
 {
     if (null == type)
     {
         throw new System.ArgumentException("Insanity requires non-null InsanityType");
     }
     if (null == entries || 0 == entries.Length)
     {
         throw new System.ArgumentException("Insanity requires non-null/non-empty CacheEntry[]");
     }
     this.Type_Renamed = type;
     this.Msg_Renamed  = msg;
     this.Entries      = entries;
 }
Esempio n. 4
0
			public Insanity(InsanityType type, System.String msg, CacheEntry[] entries)
			{
				if (null == type)
				{
					throw new System.ArgumentException("Insanity requires non-null InsanityType");
				}
				if (null == entries || 0 == entries.Length)
				{
					throw new System.ArgumentException("Insanity requires non-null/non-empty CacheEntry[]");
				}
				this.type = type;
				this.msg = msg;
				this.entries = entries;
			}
 public Insanity(InsanityType type, string msg, params FieldCache.CacheEntry[] entries)
 {
     if (null == type)
     {
         throw new System.ArgumentException("Insanity requires non-null InsanityType");
     }
     if (null == entries || 0 == entries.Length)
     {
         throw new System.ArgumentException("Insanity requires non-null/non-empty CacheEntry[]");
     }
     this.Type_Renamed = type;
     this.Msg_Renamed = msg;
     this.Entries = entries;
 }