com.brightcove.player.video360

## Class OpenGLException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - com.brightcove.player.video360.OpenGLException

- All Implemented Interfaces:
    java.io.Serializable

      public class OpenGLException
      extends java.lang.RuntimeException

  Open GL Exception is an unchecked exception that will be thrown when the player encounters Open GL errors that prevent 360 degree video playback.
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `int` | `errorCode` The Open GL error code returned by `EGL14.eglGetError()` method.
    `java.lang.String` | `errorDescription` The description about the open GL error returned by `GLUtils.getEGLErrorString(int)` method.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `OpenGLException(java.lang.String message)` Constructs a new Open GL Exception with the given message.
    `OpenGLException(java.lang.String message, int errorCode)` Constructs a new Open GL Exception with the given message and error code.

  - ### Method Summary

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### errorCode

          public final int errorCode

      The Open GL error code returned by `EGL14.eglGetError()` method.

    - #### errorDescription

          public final java.lang.String errorDescription

      The description about the open GL error returned by `GLUtils.getEGLErrorString(int)` method.

  - ### Constructor Detail

    - #### OpenGLException

          public OpenGLException(java.lang.String message)

      Constructs a new Open GL Exception with the given message.
      Parameters:
        `message` - the error message.
      See Also:
        `OpenGLException(String, int)`

    - #### OpenGLException

          public OpenGLException(java.lang.String message,
                                 int errorCode)

      Constructs a new Open GL Exception with the given message and error code.
      Parameters:
        `message` - the error message.
        `errorCode` - the Open GL error code returned by `EGL14.eglGetError()` method.