private void OnRaiseError(ExceptionEventArgs e) { var handler = ErrorOccurred; if (handler != null) { handler(this, e); } }