예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GherkinException" /> class.
 /// </summary>
 /// <param name="reason">The reason.</param>
 /// <param name="message">The message that describes the error.</param>
 public GherkinException(GherkinExceptionType reason, string message)
     : base(message)
 {
     this.Reason = reason;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GherkinException" /> class.
 /// </summary>
 /// <param name="message">The error message that explains the reason for the exception.</param>
 /// <param name="reason">The reason.</param>
 /// <param name="innerException">The exception that is the cause of the current exception,
 /// or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
 public GherkinException(string message, GherkinExceptionType reason, Exception innerException)
     : base(message, innerException)
 {
     this.Reason = reason;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GherkinException" /> class.
 /// </summary>
 /// <param name="reason">The reason.</param>
 public GherkinException(GherkinExceptionType reason)
     : this(reason, "An exception was raised by the Gherkin Lexer.")
 {
 }