Added OpenGLOutOfMemoryException.
ErrorCode on exceptions should be read only.
Gen methods are not pure in OpenGL.