Package com.opentok.android
Enum OpentokError.Domain
- java.lang.Object
-
- java.lang.Enum<OpentokError.Domain>
-
- com.opentok.android.OpentokError.Domain
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OpentokError.Domain>
- Enclosing class:
- OpentokError
public static enum OpentokError.Domain extends java.lang.Enum<OpentokError.Domain>
Defines error domains values for OpentokError objects.- See Also:
OpentokError.getErrorDomain()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PublisherErrorDomain
The error pertains to aPublisher
object.SessionErrorDomain
The error pertains to aSession
object.SubscriberErrorDomain
The error pertains to aSubscriber
object.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OpentokError.Domain
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OpentokError.Domain[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SessionErrorDomain
public static final OpentokError.Domain SessionErrorDomain
The error pertains to aSession
object.
-
PublisherErrorDomain
public static final OpentokError.Domain PublisherErrorDomain
The error pertains to aPublisher
object.
-
SubscriberErrorDomain
public static final OpentokError.Domain SubscriberErrorDomain
The error pertains to aSubscriber
object.
-
-
Method Detail
-
values
public static OpentokError.Domain[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OpentokError.Domain c : OpentokError.Domain.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpentokError.Domain valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-