code: function encodeMetadataException(type) {
  	if (type === "metadata") {
  		return exceptions.METADATA;
  	} else if (type === "access") {
  		return exceptions.ACCESS;
  	} else if (type === "credits") {
  		return exceptions.CREDITS;
  	} else if (type === "conflictingSession") {
  		return exceptions.CONFLICTING_SESSION;
  	} else if (type === "items") {
  		return exceptions.ITEMS;
  	} else if (type === "schema") {
  		return exceptions.SCHEMA;
  	} else if (type === "notification") {
  		return exceptions.NOTIFICATION;
  	} else {
  		return exceptions.GENERIC;
  	}
  }
docs: Encodes a metadata exception type.
  
  @param {Boolean} type input
  @return {String} output
  @private