Example #1
0
 /// <summary>
 /// Create a new AutoChemException wtih a severtiy and a message.
 /// </summary>
 /// <param name="msg">message</param>
 /// <param name="severity">severity</param>
 public AutoChemException(string msg, AutoChemExceptionSeverity severity)
     : base(msg)
 {
     this.autoChemExceptionSeverity = severity;
 }
Example #2
0
 /// <summary>
 /// Create a new AutoChemException with a severtiy and a default
 /// message.
 /// </summary>
 /// <param name="severity">The inner exception</param>
 public AutoChemException(AutoChemExceptionSeverity severity)
     : base(DefaultMsg)
 {
     this.autoChemExceptionSeverity = severity;
 }
Example #3
0
 /// <summary>
 /// Create a new AutoChemException with a message and inner exception.
 /// </summary>
 /// <param name="msg">message</param>
 /// <param name="e">inner exception</param>
 public AutoChemException(string msg, Exception e)
     : base(msg, e)
 {
     this.autoChemExceptionSeverity = AutoChemExceptionSeverity.UnexpectedError;
 }
Example #4
0
 /// <summary>
 /// Create a new AutoChemException with an inner exception and a default
 /// message.
 /// </summary>
 /// <param name="e">The inner exception</param>
 public AutoChemException(Exception e)
     : base(e.Message, e)
 {
     this.autoChemExceptionSeverity = AutoChemExceptionSeverity.UnexpectedError;
 }
Example #5
0
 /// <summary>
 /// Create a new instance of AutoChemException with a default message.
 /// </summary>
 public AutoChemException()
     : base(DefaultMsg)
 {
     this.autoChemExceptionSeverity = AutoChemExceptionSeverity.UnexpectedError;
 }
Example #6
0
 /// <summary>
 /// Create a new AutoChemException wtih a severtiy, inner exception,
 /// and a default message.
 /// </summary>
 /// <param name="e">inner exception</param>
 /// <param name="severity">severity</param>
 public AutoChemException(Exception e, AutoChemExceptionSeverity severity)
     : base(e.Message, e)
 {
     this.autoChemExceptionSeverity = severity;
 }