app/src/main/java/puscas/mobilertapp/constants/ConstantsError.java
package puscas.mobilertapp.constants;
import android.content.Context;
import javax.microedition.khronos.egl.EGL10;
import javax.microedition.khronos.egl.EGLContext;
import javax.microedition.khronos.egl.EGLDisplay;
import puscas.mobilertapp.DrawView;
import puscas.mobilertapp.MyEglContextFactory;
/**
* Utility class with the text constants for the errors.
*/
public final class ConstantsError {
/**
* Private constructor to avoid creating instances.
*/
private ConstantsError() {
throw new UnsupportedOperationException("Not implemented.");
}
/**
* A message for when the
* {@link MyEglContextFactory#destroyContext(EGL10, EGLDisplay, EGLContext)}
* method throws an exception.
*/
public static final String EGL_DESTROY_CONTEXT_FAILED = "eglDestroyContext failed: ";
/**
* A message for when the {@link DrawView#onPause()} method couldn't find a {@link Context}.
*/
public static final String UNABLE_TO_FIND_AN_ACTIVITY = "Unable to find an activity: ";
}