public class

GliaException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.glia.androidsdk.GliaException

Class Overview

Glia exception that contains a message for debugging and a GliaException.Cause enum value for handling some of the user and connection errors programmatically.

Summary

Nested Classes
enum GliaException.Cause Possible exception causes  
Fields
public final GliaException.Cause cause The identifier for an error.
public final String debugMessage Message describing the failure for logs and debugging
Public Constructors
GliaException(String debugMessage, GliaException.Cause cause)
Public Methods
static GliaException from(Throwable throwable)
String toString()
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Fields

public final GliaException.Cause cause

The identifier for an error. May be used to programmatically handle some of the errors, for example NETWORK_TIMEOUT error.

public final String debugMessage

Message describing the failure for logs and debugging

Public Constructors

public GliaException (String debugMessage, GliaException.Cause cause)

Public Methods

public static GliaException from (Throwable throwable)

public String toString ()