示例#1
0
        private void OnEncounteredError()
        {
            var exception = new MediaException("A VLC exception occurred");

            Trace.TraceError(exception.ToString());
            Error.Exception = exception;
        }
示例#2
0
 private void HandleError(Exception exception)
 {
     if (exception != null)
     {
         var ex = new MediaException("Could not open audio", exception);
         Trace.TraceWarning(ex.ToString());
         Error.Exception = ex;
     }
     else
     {
         Error.Exception = null;
     }
 }