function createError(severity, code) {
    return shaka.test.Util.jasmineError(new shaka.util.Error(
        severity,
        shaka.util.Error.Category.ADS,
        code));
  }
@param {shaka.util.Error.Severity} severity
@param {shaka.util.Error.Code} code
@return {Object}