/// <summary> /// Initializes a new instance of the Problem class. /// </summary> /// <param name="message"></param> /// <param name="location"></param> /// <param name="rootCause"></param> public Problem(string message, Location location, Exception rootCause) { AssertUtils.ArgumentNotNull(message, "message"); AssertUtils.ArgumentNotNull(location, "resource"); _message = message; _location = location; _rootCause = rootCause; }
public StaticMethodError(string methodName, Location location) : base(String.Format("Method '{0}' must not be static; remove the method's static modifier to continue.", methodName), location) { }
public NonVirtualMethodError(string methodName, Location location) : base(String.Format("Method '{0}' must be public virtual; change the method's modifiers to continue.", methodName), location) { }
public MethodWithParametersError(string methodName, Location location) : base(String.Format( "Method '{0}' must not accept parameters; remove the method's parameters to continue.", methodName), location) { }
/// <summary> /// Initializes a new instance of the <see cref="Problem"/> class. /// </summary> /// <param name="message">The message.</param> /// <param name="location">The location.</param> public Problem(string message, Location location) : this(message, location, null) { }