com.brightcove.proserve.mediaapi.wrapper.exceptions
Class BrightcoveException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.brightcove.proserve.mediaapi.wrapper.exceptions.BrightcoveException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MediaApiException, WrapperException

public class BrightcoveException
extends java.lang.Exception

All calls to the Media API Wrapper can throw a BrightcoveException. Most should throw a subclassed version with specific information (e.g. a wrapper-specific exception will throw a WrapperException).

Author:
Sander Gates
See Also:
Serialized Form

Constructor Summary
BrightcoveException()
          Creates a generic exception with type UNKNOWN_TYPE.
BrightcoveException(java.lang.Exception e)
          Creates an exception of type JAVA_EXCEPTION.
BrightcoveException(java.lang.String message)
          Creates an exception of type JAVA_EXCEPTION.
 
Method Summary
 ExceptionType getType()
          Gets the type of exception.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BrightcoveException

public BrightcoveException()

Creates a generic exception with type UNKNOWN_TYPE.


BrightcoveException

public BrightcoveException(java.lang.String message)

Creates an exception of type JAVA_EXCEPTION. This will operate the same as a java.lang.Exception.

Parameters:
message - Exception message

BrightcoveException

public BrightcoveException(java.lang.Exception e)

Creates an exception of type JAVA_EXCEPTION. This will operate the same as a java.lang.Exception.

Parameters:
e - java.lang.Exception to replicate
Method Detail

getType

public ExceptionType getType()

Gets the type of exception. Different methods may be available depending on the type of exception thrown.

Returns:
Type of exception thrown

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable