From 51a7f0abdb9553e89c6db00540eeb738d0138ae9 Mon Sep 17 00:00:00 2001 From: Fraser Waters Date: Mon, 28 Aug 2017 17:09:18 +0100 Subject: [PATCH] Add BindingsNotRewrittenException --- src/OpenTK/Exceptions.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/OpenTK/Exceptions.cs b/src/OpenTK/Exceptions.cs index 5eb6b92..b9be26c 100644 --- a/src/OpenTK/Exceptions.cs +++ b/src/OpenTK/Exceptions.cs @@ -47,4 +47,15 @@ namespace OpenTK /// public override string Message { get; } } + + /// + /// This exception is thown when a binding method is called and the bindings have not been rewritten by Rewrite.exe. + /// + public class BindingsNotRewrittenException : Exception + { + /// + /// Constructs a new BindingsNotRewrittenException instance. + /// + public BindingsNotRewrittenException() : base("Rewrite.exe has not been run.") { } + } } \ No newline at end of file -- 2.7.4