/// <summary> /// Initializes a new instance of the <see cref="GeneticSharp.Domain.Selections.MySelectionException"/> class. /// </summary> /// <param name="selection">The Selection where occurred the error.</param> /// <param name="message">The error message.</param> /// <param name="innerException">The inner exception.</param> public MySelectionException(IMySelection selection, string message, Exception innerException) : base("{0}: {1}".With(selection != null ? selection.GetType().Name : String.Empty, message), innerException) { Selection = selection; }