using System;
// ReSharper disable once CheckNamespace
namespace NAudio.Wave
{
///
/// Stopped Event Args
///
public class StoppedEventArgs : EventArgs
{
private readonly Exception exception;
///
/// Initializes a new instance of StoppedEventArgs
///
/// An exception to report (null if no exception)
public StoppedEventArgs(Exception exception = null)
{
this.exception = exception;
}
///
/// An exception. Will be null if the playback or record operation stopped due to
/// the user requesting stop or reached the end of the input audio
///
public Exception Exception => exception;
}
}