com.brightcove.mediaapi.exceptions
Interface BrightcoveExceptionHandler


public interface BrightcoveExceptionHandler

Allows users to specify their own logic on what to do when an exception is thrown by the Media API or the Java wraper.

Author:
three4clavin

Method Summary
 java.lang.Boolean handleException(BrightcoveException be, java.lang.String methodName)
           Called whenever the Media API wrapper encounters an exception
 

Method Detail

handleException

java.lang.Boolean handleException(BrightcoveException be,
                                  java.lang.String methodName)
                                  throws BrightcoveException

Called whenever the Media API wrapper encounters an exception

Parameters:
be - Exception thrown by the Media API or the Java wrapper
Returns:
True if the wrapper method should be retries, False if the exception should be re-thrown
Throws:
BrightcoveException - If query shouldn't be retried


http://opensource.brightcove.com/.