UNPKG

spray-wrtc

Version:

Adaptive random peer-sampling protocol running on top of WebRTC

18 lines (15 loc) 411 B
'use strict' /** * Exception that rises when the partial view is used as if there were neighbors * populating it, whereas there are none. */ class ExEmptyView { /** * @param {string} source The function that throws the exception. */ constructor (source) { this.source = source this.message = 'Partial view is used as it was not empty, yet it is.' }; }; module.exports = ExEmptyView