com.brightcove.proserve.mediaapi.wrapper.exceptions
Enum ExceptionType
java.lang.Object
java.lang.Enum<ExceptionType>
com.brightcove.proserve.mediaapi.wrapper.exceptions.ExceptionType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ExceptionType>
public enum ExceptionType
- extends java.lang.Enum<ExceptionType>
Types of BrightcoveException that can be thrown by calls to the Wrapper
- WRAPPER_EXCEPTION - Exception in the Wrapper logic
- MEDIA_API_EXCEPTION - Exception thrown by the Media API
- JAVA_EXCEPTION - java.lang.Exception thrown somewhere unexpected
- UNKNOWN_TYPE - This should trigger a code review of the Wrapper source...
- Author:
- Sander Gates
Method Summary |
static ExceptionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ExceptionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
WRAPPER_EXCEPTION
public static final ExceptionType WRAPPER_EXCEPTION
MEDIA_API_EXCEPTION
public static final ExceptionType MEDIA_API_EXCEPTION
JAVA_EXCEPTION
public static final ExceptionType JAVA_EXCEPTION
UNKNOWN_TYPE
public static final ExceptionType UNKNOWN_TYPE
values
public static final ExceptionType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(ExceptionType c : ExceptionType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static ExceptionType 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 name