Class GLFWException
Represents errors that occur within GLFW.
Implements
Inherited Members
Namespace: OpenTK.Windowing.GraphicsLibraryFramework
Assembly: OpenTK.Windowing.GraphicsLibraryFramework.dll
Syntax
[Serializable]
public class GLFWException : Exception, ISerializable
Constructors
GLFWException()
Initializes a new instance of the GLFWException class.
Declaration
public GLFWException()
GLFWException(SerializationInfo, StreamingContext)
Initializes a new instance of the GLFWException class with the specified context and the serialization information.
Declaration
protected GLFWException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The SerializationInfo associated with this exception. |
StreamingContext | context | A StreamingContext that represents the context of this exception. |
GLFWException(string, ErrorCode)
Initializes a new instance of the GLFWException class with the specified detailed description and GLFW error code.
Declaration
public GLFWException(string message, ErrorCode errorCode)
Parameters
Type | Name | Description |
---|---|---|
string | message | A detailed description of the error. |
ErrorCode | errorCode | The GLFW error code causing the exception. |
GLFWException(string, Exception)
Initializes a new instance of the GLFWException class with the specified detailed description and the specified exception.
Declaration
public GLFWException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | message | A detailed description of the error. |
Exception | innerException | A reference to the inner exception that is the cause of this exception. |
GLFWException(string)
Initializes a new instance of the GLFWException class with the specified detailed description.
Declaration
public GLFWException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | A detailed description of the error. |
Properties
ErrorCode
Gets the underlying GLFW-error code.
Declaration
public ErrorCode ErrorCode { get; }
Property Value
Type | Description |
---|---|
ErrorCode |