com.brightcove.mediaapi.exceptions
Class WrapperException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.brightcove.mediaapi.exceptions.BrightcoveException
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
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. |
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 |
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 wrappermessage
- Detailed message reported by the wrapper
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/.