BotConfigurationException.cs
1 using System;
2 
3 namespace Microsoft.Bot.Builder.Calling.Exceptions
4 {
9  {
10  #region Public Properties
11 
15  public string ConfigurationItemName { get; private set; }
16 
20  public string ConfigurationItemValue { get; private set; }
21 
22  #endregion
23 
24  #region Constructors and Destructors
25 
32  public BotConfigurationException(string message, string itemName = null, string itemValue = null) : base(message)
33  {
34  ConfigurationItemName = itemName;
35  ConfigurationItemValue = itemValue;
36  }
37 
50  string message,
51  Exception innerException,
52  string itemName = null,
53  string itemValue = null,
54  bool extendForInternalExceptionRemark = true) : base(message, innerException, extendForInternalExceptionRemark)
55  {
56  ConfigurationItemName = itemName;
57  ConfigurationItemValue = itemValue;
58  }
59 
60  #endregion
61  }
62 }
Exception type thrown when the bot configuration is invalid
BotConfigurationException(string message, string itemName=null, string itemValue=null)
creates a new BotConfigurationException
base exceptions for all exceptions thrown by the bots core library
Definition: BotException.cs:9
BotConfigurationException(string message, Exception innerException, string itemName=null, string itemValue=null, bool extendForInternalExceptionRemark=true)
wraps an exception into the BotConfigurationException