Class MissingApplicationSettingException
An app setting is missing from System.Configuration.ConfigurationManager.AppSettings.
Inheritance
Inherited Members
Namespace: Cqrs.Exceptions
Assembly: Cqrs.dll
Syntax
[Serializable]
public class MissingApplicationSettingException : Exception, ISerializable, _Exception
Constructors
MissingApplicationSettingException(String)
Instantiate a new instance of MissingApplicationSettingException.
Declaration
public MissingApplicationSettingException(string appSettingKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | appSettingKey | The key of the app setting that is missing. |
MissingApplicationSettingException(String, Boolean)
Instantiate a new instance of MissingApplicationSettingException.
Declaration
protected MissingApplicationSettingException(string appSettingKey, bool settingLocatesConnectionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | appSettingKey | The key of the app setting that is missing. |
System.Boolean | settingLocatesConnectionString | If true, this missing app setting points to a connection string. |
MissingApplicationSettingException(String, Boolean, Exception)
Instantiate a new instance of MissingApplicationSettingException and a reference to the inner exception
that is the cause of this System.Exception.
Declaration
protected MissingApplicationSettingException(string appSettingKey, bool settingLocatesConnectionString, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.String | appSettingKey | The key of the app setting that is missing. |
System.Boolean | settingLocatesConnectionString | If true, this missing app setting points to a connection string. |
System.Exception | exception | The System.Exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner System.Exception is specified. |
MissingApplicationSettingException(String, Exception)
Instantiate a new instance of MissingApplicationSettingException and a reference to the inner exception
that is the cause of this System.Exception.
Declaration
public MissingApplicationSettingException(string appSettingKey, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.String | appSettingKey | The key of the app setting that is missing. |
System.Exception | exception | The System.Exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner System.Exception is specified. |
MissingApplicationSettingException(String, String)
Instantiate a new instance of MissingApplicationSettingException with a specified error message.
Declaration
public MissingApplicationSettingException(string appSettingKey, string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | appSettingKey | The key of the app setting that is missing. |
System.String | message | The message that describes the error. |
MissingApplicationSettingException(String, String, Exception)
Instantiate a new instance of MissingApplicationSettingException with a specified error message and and a reference to the inner exception
that is the cause of this System.Exception
Declaration
public MissingApplicationSettingException(string appSettingKey, string message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.String | appSettingKey | The key of the app setting that is missing. |
System.String | message | The message that describes the error. |
System.Exception | exception | The System.Exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner System.Exception is specified. |
Properties
AppSettingKey
The key of the app setting that is missing.
Declaration
[DataMember]
public string AppSettingKey { get; set; }
Property Value
Type | Description |
---|---|
System.String |