|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.brightcove.mediaapi.exceptions.BrightcoveException
com.brightcove.mediaapi.exceptions.MediaApiException
public class MediaApiException
This is an exception thrown by the Media API (not the Java wrapper)
Field Summary | |
---|---|
static java.lang.Integer |
MEDIA_API_ERROR_UNPARSABLE
|
Fields inherited from class com.brightcove.mediaapi.exceptions.BrightcoveException |
---|
type |
Constructor Summary | |
---|---|
MediaApiException(org.json.JSONObject jsonObject)
Creates a new Media API Exception using JSON returned by the Media API server to populate any details. |
Method Summary | |
---|---|
org.json.JSONObject |
getJsonObject()
Returns the JSON reported by the Media API server |
java.lang.Integer |
getResponseCode()
Returns the numeric error code reported by the Media API server |
java.lang.String |
getResponseMessage()
Returns the textual description of the error as reported by the Media API server |
void |
setJsonObject(org.json.JSONObject jsonObject)
Sets the JSON reported by the Media API server |
void |
setResponseCode(java.lang.Integer responseCode)
Sets the numeric error code reported by the Media API server |
void |
setResponseMessage(java.lang.String responseMessage)
Sets the textual description of the error as reported by the Media API server |
java.lang.String |
toString()
|
Methods inherited from class com.brightcove.mediaapi.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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Integer MEDIA_API_ERROR_UNPARSABLE
Constructor Detail |
---|
public MediaApiException(org.json.JSONObject jsonObject) throws WrapperException
Creates a new Media API Exception using JSON returned by the Media API server to populate any details.
jsonObject
- Details of exception as reported by the server
WrapperException
- If JSON can't be parsed for some reasonMethod Detail |
---|
public org.json.JSONObject getJsonObject()
Returns the JSON reported by the Media API server
public void setJsonObject(org.json.JSONObject jsonObject)
Sets the JSON reported by the Media API server
jsonObject
- JSON returned by the serverpublic java.lang.Integer getResponseCode()
Returns the numeric error code reported by the Media API server
public void setResponseCode(java.lang.Integer responseCode)
Sets the numeric error code reported by the Media API server
responseCode
- Numeric error code reported by the serverpublic java.lang.String getResponseMessage()
Returns the textual description of the error as reported by the Media API server
public void setResponseMessage(java.lang.String responseMessage)
Sets the textual description of the error as reported by the Media API server
responseMessage
- Description of error as reported by the serverpublic java.lang.String toString()
toString
in class BrightcoveException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |