/// <summary> /// Adds a warning message to the log. /// </summary> /// <param name="location">The file location</param> /// <param name="message">The log message</param> public void AddWarning(FileLocation location, string message) { this.Add(new LogEntry(LogEntry.Warning, location, message)); }
/// <summary> /// Adds an error message to the log. /// </summary> /// <param name="location">The file location</param> /// <param name="message">The log message</param> public void AddError(FileLocation location, string message) { this.Add(new LogEntry(LogEntry.Error, location, message)); }
/// <summary> /// Initializes a new instance of the <see cref="MibMacroSymbol"/> class. /// </summary> /// <param name="location">The symbol location</param> /// <param name="mib">The symbol MIB name</param> /// <param name="name">The symbol name</param> public MibMacroSymbol(FileLocation location, Mib mib, string name) : base(location, mib, name) { }
/// <summary> /// Initializes a new instance of the <see cref="MibValueSymbol"/> class. /// NOTE: This is an internal constructor that /// should only be called by the MIB loader. /// </summary> /// <param name="location">The symbol location</param> /// <param name="mib">The symbol MIB name</param> /// <param name="name">The symbol name</param> /// <param name="type">The symbol type</param> /// <param name="value">The symbol value</param> public MibValueSymbol(FileLocation location, Mib mib, string name, MibType type, MibValue value) : base(location, mib, name) { this.Type = type; this.Value = value; }
protected MibException(SerializationInfo info, StreamingContext context) : base(info, context) { this.location = (FileLocation)info.GetValue("Location", typeof(FileLocation)); }
/// <summary> /// Initializes a new instance of the <see cref="MibException"/> class. /// </summary> /// <param name="location">The FileLocation where the exception is being raised</param> /// <param name="message">The detailed exception error message</param> public MibException(FileLocation location, string message) : base(message) { this.location = location; }