public static WrongImplementationException With(HelpLinkType helpLinkType, string message) { return(new WrongImplementationException(helpLinkType, message)); }
public static WrongImplementationException With(HelpLinkType helpLinkType, string format, params object[] args) { return(new WrongImplementationException(helpLinkType, string.Format(format, args))); }
private WrongImplementationException(HelpLinkType helpLinkType, string message) : base(string.Format("{0}{1}Help link:{2}", message, Environment.NewLine, HelpLinks[helpLinkType])) { HelpLinkType = helpLinkType; }
/// <summary> /// Initializes a new instance of the <see cref="CustomHelpLinkModel" /> class. /// </summary> /// <param name="linkType">linkType.</param> /// <param name="helpLink">helpLink.</param> public CustomHelpLinkModel(HelpLinkType linkType = default(HelpLinkType), string helpLink = default(string)) { this.LinkType = linkType; this.HelpLink = helpLink; }
public static WrongImplementationException With(HelpLinkType helpLinkType, string format, params object[] args) { return new WrongImplementationException(helpLinkType, string.Format(format, args)); }
public static WrongImplementationException With(HelpLinkType helpLinkType, string message) { return new WrongImplementationException(helpLinkType, message); }