Example #1
0
 /// <summary>
 /// Fires an error occurred event.
 /// </summary>
 /// <param name="error">The associated error code.</param>
 /// <param name="position">Position of the error.</param>
 public void RaiseErrorOccurred(CssParseError error, TextPosition position)
 {
     if (_events != null)
     {
         var errorEvent = new CssParseErrorEvent(error.GetCode(), error.GetMessage(), position);
         _events.Publish(errorEvent);
     }
 }
Example #2
0
 /// <summary>
 /// Fires an error occurred event.
 /// </summary>
 /// <param name="error">The associated error code.</param>
 /// <param name="position">Position of the error.</param>
 public void RaiseErrorOccurred(CssParseError error, TextPosition position)
 {
     if (_events != null)
     {
         var errorEvent = new CssParseErrorEvent(error.GetCode(), error.GetMessage(), position);
         _events.Publish(errorEvent);
     }
 }