Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IoTException" /> class.
 /// </summary>
 /// <param name="message">The error message that explains the reason for the exception.</param>
 /// <param name="innerException">The exception that is the cause of the current exception. If the <paramref name="innerException" /> parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.</param>
 public IoTException(string message, Exception innerException, ErrorReasonTypeEnum errorReasonType = ErrorReasonTypeEnum.Unknown)
     : base(message, innerException)
 {
     this.IsHandled  = false;
     ErrorReasonType = errorReasonType;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IoTException" /> class.
 /// </summary>
 /// <param name="message">A message that describes the error.</param>
 public IoTException(string message, ErrorReasonTypeEnum errorReasonType = ErrorReasonTypeEnum.Unknown, IEnumerable <string> errors = null)
     : this(message, null)
 {
     this.ErrorReasonType = errorReasonType;
     this.Errors          = errors;
 }