api/http/definitions/Parameter.js
/**
		 * Throws an {@link Error} if the instance is invalid.
		 *
		 * @public
		 */
Throws an  Error if the instance is invalid.
@public
Throws an Error if the instance is invalid . @public
validate() {
			if (!is.string(this.key) || this.key.length === 0) {
				throw new Error('Parameter key must be a non-zero length string');
			}
			if (!is.fn(this._extractor)) {
				throw new Error('Parameter extractor must be a function.');
			}
		}
validate ( ) { if ( ! is . string ( this . key ) || this . key . length === 0 ) { throw new Error ( 'Parameter key must be a non-zero length string' ) ; } if ( ! is . fn ( this . _extractor ) ) { throw new Error ( 'Parameter extractor must be a function.' ) ; } }
Throws an {@link Error} if the instance is invalid.
Throws an { @link Error } if the instance is invalid .