using System; using System.Collections.Generic; using System.Text; namespace OpenTK.Graphics { /// /// 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)) { } } }