Пример #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MediaRendererException"/> class.
 /// </summary>
 /// <param name="renderer">
 ///     An instance of the renderer which caused an error.
 /// </param>
 /// <param name="error">
 ///     An error that occurred on <paramref name="renderer"/>
 /// </param>
 /// <param name="message">
 ///     The message that describes an error.
 /// </param>
 /// <param name="innerException">
 ///     The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
 /// </param>
 /// <exception cref="ArgumentNullException">
 ///     <paramref name="renderer"/> is <c>null</c>.
 /// </exception>
 public MediaRendererException(MediaRenderer renderer, MediaRendererError error, string message, Exception innerException)
     : base(renderer, message, innerException)
 {
     this.Error = error;
 }
Пример #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MediaRendererException"/> class.
 /// </summary>
 /// <param name="renderer">
 ///     An instance of the renderer which caused an error.
 /// </param>
 /// <param name="error">
 ///     An error that occurred on <paramref name="renderer"/>
 /// </param>
 /// <param name="message">
 ///     The message that describes an error.
 /// </param>
 /// <exception cref="ArgumentNullException">
 ///     <paramref name="renderer"/> is <c>null</c>.
 /// </exception>
 public MediaRendererException(MediaRenderer renderer, MediaRendererError error, string message)
     : this(renderer, error, message, null)
 {
 }