public Error(ErrorStage stage, string reason, string file, Exception exception) : this(stage, reason, file) { Exception = exception; }
public Error(ErrorStage stage, string reason, string file) : this(stage, reason) { Path = file; FileName = System.IO.Path.GetFileName(file); }
/// <summary> /// Constructor for the Error class. /// </summary> /// <param name="stage">The execution the error happened at.</param> /// <param name="type">The type of error.</param> /// <param name="message">The error message.</param> public Error(ErrorStage stage, ErrorType type, string message) { this.Stage = stage; this.Type = type; this.Message = message; }
public Error(ErrorStage stage, string reason) { Stage = stage; Reason = reason; }
// Calls the error callback public void Error(Exception e, ErrorStage stage) { _onError(e, stage); }