VideoRequiresPurchaseException.preview constructor

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

Initializes an instance of VideoRequiresPurchaseException.

Implementation

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