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

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

public class MediaApiException
extends BrightcoveException

This is an exception thrown by the Media API

Author:
Sander Gates
See Also:
Serialized Form

Field Summary
static java.lang.Integer MEDIA_API_ERROR_UNPARSABLE
           
 
Constructor Summary
MediaApiException(JSONObject jsonObject)
           
 
Method Summary
 JSONObject getJsonObject()
           
 java.lang.Integer getResponseCode()
           
 java.lang.String getResponseMessage()
           
 void setJsonObject(JSONObject jsonObject)
           
 void setResponseCode(java.lang.Integer responseCode)
           
 void setResponseMessage(java.lang.String responseMessage)
           
 java.lang.String toString()
           
 
Methods inherited from class com.brightcove.proserve.mediaapi.wrapper.exceptions.BrightcoveException
getType
 
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
 

Field Detail

MEDIA_API_ERROR_UNPARSABLE

public static final java.lang.Integer MEDIA_API_ERROR_UNPARSABLE
Constructor Detail

MediaApiException

public MediaApiException(JSONObject jsonObject)
                  throws WrapperException
Throws:
WrapperException
Method Detail

getJsonObject

public JSONObject getJsonObject()

setJsonObject

public void setJsonObject(JSONObject jsonObject)

getResponseCode

public java.lang.Integer getResponseCode()

setResponseCode

public void setResponseCode(java.lang.Integer responseCode)

getResponseMessage

public java.lang.String getResponseMessage()

setResponseMessage

public void setResponseMessage(java.lang.String responseMessage)

toString

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