VideoRequiresPurchaseException.preview constructor

VideoRequiresPurchaseException.preview(
  1. VideoId videoId,
  2. VideoId previewVideoId
)

Initializes an instance of VideoRequiresPurchaseException.

Implementation

VideoRequiresPurchaseException.preview(VideoId videoId, this.previewVideoId)
    : message = 'Video `$videoId` is unplayable because it requires purchase.'
          'Streams are not available for this video.'
          'There is a preview video available: `$previewVideoId`.';