/// <summary> /// Creates a new <see cref="NotSupportedQueryFragmentException"/> /// </summary> /// <param name="message">The error message to display</param> /// <param name="fragment">The fragment of the query that caused the error</param> public NotSupportedQueryFragmentException(string message, TSqlFragment fragment) : base(message + ": " + fragment.ToSql()) { Error = message; Fragment = fragment; }