jherby2k/PowerShellAudio — pull request #6 by bherila (2014-12-02 02:29:07+00:00)
Title: Add a little more information to exceptions

Diff speaks for itself...

Unit tests still pass (not that they test this specific functionality...)

```
1>------ Build started: Project: PowerShellAudio.Api, Configuration: Debug Any CPU ------
1> PowerShellAudio.Api -> C:\Users\Ben\Documents\PowerShellAudio\PowerShellAudio.Api\bin\Debug\PowerShellAudio.Api.dll
1> Running Code Analysis...
1>c:\Users\Ben\Documents\PowerShellAudio\PowerShellAudio.Api\AnalyzableAudioFile.cs(167): warning CA1305: Microsoft.Globalization : Because the behavior of 'string.Format(string, object)' could vary based on the current user's locale settings, replace this call in 'AnalyzableAudioFile.DoAnalyze(ISampleAnalyzer, CancellationToken, GroupToken)' with a call to 'string.Format(IFormatProvider, string, params object[])'. If the result of 'string.Format(IFormatProvider, string, params object[])' will be displayed to the user, specify 'CultureInfo.CurrentCulture' as the 'IFormatProvider' parameter. Otherwise, if the result will be stored and accessed by software, such as when it is persisted to disk or to a database, specify 'CultureInfo.InvariantCulture'.
1>c:\Users\Ben\Documents\PowerShellAudio\PowerShellAudio.Api\AudioFile.cs(149): warning CA1305: Microsoft.Globalization : Because the behavior of 'string.Format(string, object)' could vary based on the current user's locale settings, replace this call in 'AudioFile.LoadAudioInfo()' with a call to 'string.Format(IFormatProvider, string, params object[])'. If the result of 'string.Format(IFormatProvider, string, params object[])' will be displayed to the user, specify 'CultureInfo.CurrentCulture' as the 'IFormatProvider' parameter. Otherwise, if the result will be stored and accessed by software, such as when it is persisted to disk or to a database, specify 'CultureInfo.InvariantCulture'.
1>c:\Users\Ben\Documents\PowerShellAudio\PowerShellAudio.Api\ExportableAudioFile.cs(210): warning CA1305: Microsoft.Globalization : Because the behavior of 'string.Format(string, object)' could vary based on the current user's locale settings, replace this call in 'ExportableAudioFile.DoExport(ISampleEncoder, Stream, SettingsDictionary, CancellationToken)' with a call to 'string.Format(IFormatProvider, string, params object[])'. If the result of 'string.Format(IFormatProvider, string, params object[])' will be displayed to the user, specify 'CultureInfo.CurrentCulture' as the 'IFormatProvider' parameter. Otherwise, if the result will be stored and accessed by software, such as when it is persisted to disk or to a database, specify 'CultureInfo.InvariantCulture'.
1>c:\Users\Ben\Documents\PowerShellAudio\PowerShellAudio.Api\TaggedAudioFile.cs(146): warning CA1305: Microsoft.Globalization : Because the behavior of 'string.Format(string, object)' could vary based on the current user's locale settings, replace this call in 'TaggedAudioFile.SaveMetadata(SettingsDictionary)' with a call to 'string.Format(IFormatProvider, string, params object[])'. If the result of 'string.Format(IFormatProvider, string, params object[])' will be displayed to the user, specify 'CultureInfo.CurrentCulture' as the 'IFormatProvider' parameter. Otherwise, if the result will be stored and accessed by software, such as when it is persisted to disk or to a database, specify 'CultureInfo.InvariantCulture'.
1> Code Analysis Complete -- 0 error(s), 4 warning(s)
2>------ Build started: Project: PowerShellAudio.Commands, Configuration: Debug Any CPU ------
3>------ Build started: Project: PowerShellAudio.UnitTests, Configuration: Debug Any CPU ------
2> PowerShellAudio.Commands -> C:\Users\Ben\Documents\PowerShellAudio\PowerShellAudio.Commands\bin\Debug\PowerShellAudio.Commands.dll
2> Running Code Analysis...
2> Code Analysis Complete -- 0 error(s), 0 warning(s)
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Apple\COPYING
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Apple\COPYING.LESSER
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Apple\PowerShellAudio.Extensions.Apple.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Apple\PowerShellAudio.Extensions.Apple.dll.CodeAnalysisLog.xml
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Apple\PowerShellAudio.Extensions.Apple.dll.lastcodeanalysissucceeded
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Apple\PowerShellAudio.Extensions.Apple.pdb
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Flac\COPYING
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Flac\COPYING.LESSER
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Flac\PowerShellAudio.Extensions.Flac.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Flac\PowerShellAudio.Extensions.Flac.dll.CodeAnalysisLog.xml
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Flac\PowerShellAudio.Extensions.Flac.dll.lastcodeanalysissucceeded
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Flac\PowerShellAudio.Extensions.Flac.pdb
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Flac\x64\libFLAC.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Flac\x86\libFLAC.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Id3\COPYING
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Id3\COPYING.LESSER
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Id3\ICSharpCode.SharpZipLib.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Id3\Id3Lib.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Id3\PowerShellAudio.Extensions.Id3.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Id3\PowerShellAudio.Extensions.Id3.dll.CodeAnalysisLog.xml
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Id3\PowerShellAudio.Extensions.Id3.dll.lastcodeanalysissucceeded
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Id3\PowerShellAudio.Extensions.Id3.pdb
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Lame\COPYING
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Lame\COPYING.LESSER
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Lame\PowerShellAudio.Extensions.Lame.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Lame\PowerShellAudio.Extensions.Lame.dll.CodeAnalysisLog.xml
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Lame\PowerShellAudio.Extensions.Lame.dll.lastcodeanalysissucceeded
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Lame\PowerShellAudio.Extensions.Lame.pdb
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Lame\x64\libmp3lame.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Lame\x86\libmp3lame.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Mp3\COPYING
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Mp3\COPYING.LESSER
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Mp3\PowerShellAudio.Extensions.Mp3.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Mp3\PowerShellAudio.Extensions.Mp3.dll.CodeAnalysisLog.xml
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Mp3\PowerShellAudio.Extensions.Mp3.dll.lastcodeanalysissucceeded
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Mp3\PowerShellAudio.Extensions.Mp3.pdb
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Mp4\COPYING
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Mp4\COPYING.LESSER
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Mp4\PowerShellAudio.Extensions.Mp4.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Mp4\PowerShellAudio.Extensions.Mp4.dll.CodeAnalysisLog.xml
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Mp4\PowerShellAudio.Extensions.Mp4.dll.lastcodeanalysissucceeded
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Mp4\PowerShellAudio.Extensions.Mp4.pdb
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\ReplayGain\COPYING
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\ReplayGain\COPYING.LESSER
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\ReplayGain\PowerShellAudio.Extensions.ReplayGain.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\ReplayGain\PowerShellAudio.Extensions.ReplayGain.dll.CodeAnalysisLog.xml
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\ReplayGain\PowerShellAudio.Extensions.ReplayGain.dll.lastcodeanalysissucceeded
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\ReplayGain\PowerShellAudio.Extensions.ReplayGain.pdb
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\ReplayGain\System.Threading.Tasks.Dataflow.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\ReplayGain\System.Threading.Tasks.Dataflow.xml
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\ReplayGain\x64\ebur128.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\ReplayGain\x86\ebur128.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Vorbis\COPYING
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Vorbis\COPYING.LESSER
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Vorbis\PowerShellAudio.Extensions.Vorbis.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Vorbis\PowerShellAudio.Extensions.Vorbis.dll.CodeAnalysisLog.xml
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Vorbis\PowerShellAudio.Extensions.Vorbis.dll.lastcodeanalysissucceeded
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Vorbis\PowerShellAudio.Extensions.Vorbis.pdb
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Vorbis\x64\libogg.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Vorbis\x64\libvorbis.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Vorbis\x86\libogg.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Vorbis\x86\libvorbis.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Wave\COPYING
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Wave\COPYING.LESSER
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Wave\PowerShellAudio.Extensions.Wave.dll
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Wave\PowerShellAudio.Extensions.Wave.dll.CodeAnalysisLog.xml
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Wave\PowerShellAudio.Extensions.Wave.dll.lastcodeanalysissucceeded
2> C:\Users\Ben\Documents\PowerShellAudio\Extensions\bin\Debug\Wave\PowerShellAudio.Extensions.Wave.pdb
2> 68 File(s) copied
3> PowerShellAudio.UnitTests -> C:\Users\Ben\Documents\PowerShellAudio\PowerShellAudio.UnitTests\bin\Debug\PowerShellAudio.UnitTests.dll
3> Running Code Analysis...
3> Code Analysis Complete -- 0 error(s), 0 warning(s)
========== Build: 3 succeeded, 0 failed, 11 up-to-date, 0 skipped ==========

```