From 5f47e3d8a53112bc19a7f513c75567a704218b85 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 17 Jul 2009 22:57:11 +0000 Subject: [PATCH] Added AudioValueException class. --- Source/OpenTK/Audio/AudioValueException.cs | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Source/OpenTK/Audio/AudioValueException.cs diff --git a/Source/OpenTK/Audio/AudioValueException.cs b/Source/OpenTK/Audio/AudioValueException.cs new file mode 100644 index 00000000..42f5de0e --- /dev/null +++ b/Source/OpenTK/Audio/AudioValueException.cs @@ -0,0 +1,43 @@ +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +using System; +using System.Collections.Generic; +using System.Text; + +namespace OpenTK.Audio +{ + /// Represents exceptions related to invalid values. + public class AudioValueException : AudioException + { + /// Constructs a new instance. + public AudioValueException() : base() { } + /// Constructs a new instance with the specified error message. + /// The error message of the AudioContextException. + public AudioValueException(string message) : base(message) { } + } +}