Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConfigException"/> class.
 /// </summary>
 /// <param name="message">A custom message</param>
 /// <param name="code">The error code of the Exception</param>
 /// <param name="innerException">An inner exception to be passed along with this</param>
 public ConfigException(string message, ConfigErrorCode code, Exception innerException)
     : base(message, innerException)
 {
     _errorList = new ConfigError[] { new ConfigError(code, message, innerException) };
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConfigError"/> class.
 /// </summary>
 /// <param name="code">The error code.</param>
 /// <param name="message">The error message.</param>
 /// <param name="ex">An exception containing additional info about the error.</param>
 public ConfigError(ConfigErrorCode code, string message, Exception ex)
 {
     this.Code = code;
     this.Message = message;
     this.Exception = ex;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConfigException"/> class.
 /// </summary>
 /// <param name="message">A custom message</param>
 /// <param name="code">The error code of the Exception</param>
 public ConfigException(string message, ConfigErrorCode code)
 {
     _errorList = new ConfigError[] { new ConfigError(code, message) };
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConfigError"/> class.
 /// </summary>
 /// <param name="code">The error code.</param>
 /// <param name="message">The error message.</param>
 public ConfigError(ConfigErrorCode code, string message)
     : this(code, message, null)
 {
 }