Language

GLException Constructors

Definition

Overloads

Name Description
GLException(Int32)

Creates a GL exception whose detail message is derived from the error code, with a hexadecimal fallback for an unknown code.

GLException(Int32, String)

Creates a GL exception with the specified error code and detail message.

GLException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

GLException(Int32)

Creates a GL exception whose detail message is derived from the error code, with a hexadecimal fallback for an unknown code.

[Android.Runtime.Register(".ctor", "(I)V", "")]
public GLException(int error);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Android.Opengl.GLException : int -> Android.Opengl.GLException

Parameters

error
Int32

The GL error code to associate with the exception.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GLException(Int32, String)

Creates a GL exception with the specified error code and detail message.

[Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "")]
public GLException(int error, string? string);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "")>]
new Android.Opengl.GLException : int * string -> Android.Opengl.GLException

Parameters

error
Int32

The GL error code to associate with the exception.

string
String

The detail message passed to the Java runtime exception.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GLException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected GLException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Opengl.GLException : nativeint * Android.Runtime.JniHandleOwnership -> Android.Opengl.GLException

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to