Package com.opentok.android
Class OpentokError
- java.lang.Object
-
- com.opentok.android.OpentokError
-
public class OpentokError extends java.lang.ObjectDefines errors thrown by the OpenTok Android SDK.Check the values returned by
getErrorCode()andgetMessage()for details on the error.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpentokError.DomainDefines error domains values for OpentokError objects.static classOpentokError.ErrorCodeDefines error code values for OpentokError objects.
-
Field Summary
Fields Modifier and Type Field Description protected OpentokError.ErrorCodeerrorCodeprotected OpentokError.DomainerrorDomainprotected java.lang.StringerrorMessageprotected java.lang.Exceptionexception
-
Constructor Summary
Constructors Constructor Description OpentokError(OpentokError.Domain errorDomain, int errorCode, java.lang.Exception exception)Builds an OpentokError based on its domain, error code and message.OpentokError(OpentokError.Domain errorDomain, int errorCode, java.lang.String msg)Builds an OpentokError based on its domain, error code and message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpentokError.ErrorCodegetErrorCode()Returns the error code.OpentokError.DomaingetErrorDomain()Returns the error domain.java.lang.ExceptiongetException()java.lang.StringgetMessage()
-
-
-
Field Detail
-
errorDomain
protected OpentokError.Domain errorDomain
-
errorCode
protected OpentokError.ErrorCode errorCode
-
errorMessage
protected java.lang.String errorMessage
-
exception
protected java.lang.Exception exception
-
-
Constructor Detail
-
OpentokError
public OpentokError(OpentokError.Domain errorDomain, int errorCode, java.lang.String msg)
Builds an OpentokError based on its domain, error code and message.
-
OpentokError
public OpentokError(OpentokError.Domain errorDomain, int errorCode, java.lang.Exception exception)
Builds an OpentokError based on its domain, error code and message.
-
-
Method Detail
-
getErrorDomain
public OpentokError.Domain getErrorDomain()
Returns the error domain. Values for the error domain are defined by theOpentokError.Domainenum.
-
getErrorCode
public OpentokError.ErrorCode getErrorCode()
Returns the error code. Values for the error code are defined by theOpentokError.ErrorCodeenum.Call the
getMessage()method to get more details on the error.
-
getMessage
public java.lang.String getMessage()
-
getException
public java.lang.Exception getException()
-
-