From e64171ae45b4c298ff34dcb906571e9128134f9f Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Mon, 15 Oct 2007 11:03:57 +0000 Subject: [PATCH] Added Exceptions.cs which contains OpenTK exceptions. --- Source/OpenTK/Exceptions.cs | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Source/OpenTK/Exceptions.cs diff --git a/Source/OpenTK/Exceptions.cs b/Source/OpenTK/Exceptions.cs new file mode 100644 index 00000000..4303caa8 --- /dev/null +++ b/Source/OpenTK/Exceptions.cs @@ -0,0 +1,36 @@ +#region --- License --- +/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos + * See license.txt for license info + */ +#endregion + +using System; + +namespace OpenTK +{ + + #region public class ContextExistsException : ApplicationException + + /// + /// This exception is thrown when a GLContext property cannot be changed after creation. + /// + public class ContextExistsException : ApplicationException + { + string msg; + + public ContextExistsException(string message) + { + msg = message; + } + + public override string Message + { + get + { + return msg; + } + } + } + + #endregion +} \ No newline at end of file