FileDocCategorySizeDatePackage
GLException.javaAPI DocAndroid 1.5 API1357Wed May 06 22:42:00 BST 2009android.opengl

GLException

public class GLException extends RuntimeException
An exception class for OpenGL errors.

Fields Summary
private final int
mError
Constructors Summary
public GLException(int error)

        super(getErrorString(error));
        mError = error;
    
public GLException(int error, String string)

        super(string);
        mError = error;
    
Methods Summary
intgetError()

        return mError;
    
private static java.lang.StringgetErrorString(int error)

        String errorString = GLU.gluErrorString(error);
        if ( errorString == null ) {
            errorString = "Unknown error 0x" + Integer.toHexString(error);
        }
        return errorString;