Added Exceptions.cs which contains OpenTK exceptions.
This commit is contained in:
parent
8cce2ac278
commit
e64171ae45
1 changed files with 36 additions and 0 deletions
36
Source/OpenTK/Exceptions.cs
Normal file
36
Source/OpenTK/Exceptions.cs
Normal file
|
@ -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
|
||||
|
||||
/// <summary>
|
||||
/// This exception is thrown when a GLContext property cannot be changed after creation.
|
||||
/// </summary>
|
||||
public class ContextExistsException : ApplicationException
|
||||
{
|
||||
string msg;
|
||||
|
||||
public ContextExistsException(string message)
|
||||
{
|
||||
msg = message;
|
||||
}
|
||||
|
||||
public override string Message
|
||||
{
|
||||
get
|
||||
{
|
||||
return msg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
Loading…
Reference in a new issue