playbackError
fun playbackError(errorCode: Int, errorMessage: String = "Unknown Error Occurred", contextDescription: String? = null, internalError: Error? = null): Error
Creates an Error using supplied params and adds ErrorCodes.ERROR_CATEGORY_MASK_PLAYBACK category to it.
Return
Error instance.
Parameters
errorCode
should be one of the values in com.quickplay.vstb7.player.error.PlayerErrorCodes
errorMessage
A short message describing the Error occurrence.
contextDescription
A serialized contextual information on the Error such as stack-trace.
internalError
Internal root-cause if any.
fun playbackError(errorCode: Int, errorMessage: String = "Unknown Error Occurred", exception: Exception): ExceptionalError
Creates an Error with supplied params and adds ErrorCodes.ERROR_CATEGORY_MASK_PLAYBACK category to it.
Return
ExceptionalError instance.
Parameters
errorCode
should be one of the values in com.quickplay.vstb7.player.error.PlayerErrorCodes
errorMessage
A short message describing the Error occurrence.
exception
Internal exception which is the root-cause for this ExceptionalError occurrence.