com.brightcove.mediaapi.exceptions
Class WrapperException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.brightcove.mediaapi.exceptions.BrightcoveException
              extended by com.brightcove.mediaapi.exceptions.WrapperException
All Implemented Interfaces:
java.io.Serializable

public class WrapperException
extends BrightcoveException

A Media API Wrapper exception - e.g. couldn't communicate with server, couldn't parse response from server, etc.

Author:
three4clavin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.brightcove.mediaapi.exceptions.BrightcoveException
type
 
Constructor Summary
WrapperException(WrapperExceptionCode code, java.lang.String message)
           Creates a Media API Wrapper exception - this usually indicates that the server couldn't be contacted, or the response couldn't be parsed.
 
Method Summary
 WrapperExceptionCode getCode()
           Gets the error code reported by the wrapper
 java.lang.String getMessage()
           
 java.lang.String toString()
           
 
Methods inherited from class com.brightcove.mediaapi.exceptions.BrightcoveException
getType
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrapperException

public WrapperException(WrapperExceptionCode code,
                        java.lang.String message)

Creates a Media API Wrapper exception - this usually indicates that the server couldn't be contacted, or the response couldn't be parsed. This is different than a Media API exception (where all of the communication was fine, but the Media API server reported an error with the request).

Parameters:
code - Error code reported by the wrapper
message - Detailed message reported by the wrapper
Method Detail

getCode

public WrapperExceptionCode getCode()

Gets the error code reported by the wrapper

Returns:
Error code reported by the wrapper

getMessage

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

toString

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


http://opensource.brightcove.com/.