#region --- License --- /* Licensed under the MIT/X11 license. * Copyright (c) 2006-2008 the OpenTK team. * This notice may not be removed. * See license.txt for licensing detailed licensing details. */ #endregion using System; using System.Collections.Generic; using System.Text; namespace OpenTK.Graphics { /// Represents errors related to unavailable graphics parameters.. public class GraphicsModeException : Exception { /// Constructs a new GraphicsModeException. public GraphicsModeException() : base() { } /// Constructs a new GraphicsModeException with the given error message. public GraphicsModeException(string message) : base(message) { } } /// Represents errors related to a GraphicsContext. public class GraphicsContextException : Exception { /// Constructs a new GraphicsContextException. public GraphicsContextException() : base() { } /// Constructs a new GraphicsContextException with the given error message.. public GraphicsContextException(string message) : base(message) { } } /// /// Thrown when an operation that required GraphicsContext is performed, when no /// GraphicsContext is current in the calling thread. /// public class GraphicsContextMissingException : GraphicsContextException { /// Constructs a new GraphicsContextMissingException. public GraphicsContextMissingException() : base(String.Format( "No context is current in the calling thread (ThreadId: {0}).", System.Threading.Thread.CurrentThread.ManagedThreadId)) { } } }